Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all 4211 articles
Browse latest View live

LXD, why is device name using 'eth0'?

$
0
0
Why does this configuration result in the `lxc list` results below where it appears to have gotten a DHCP address as specified in the network, but it's shows on eth0 rather than on enp1s0?

$ lxc list
Code:

+-------+---------+----------------------+------+-----------+-----------+
| NAME  |  STATE  |        IPV4        | IPV6 |  TYPE    | SNAPSHOTS |
+-------+---------+----------------------+------+-----------+-----------+
| instA | RUNNING | 192.168.1.117 (eth0) |      | CONTAINER | 0        |
+-------+---------+----------------------+------+-----------+-----------+

Here is how it was configured.

Code:

    lxc network create lanA \
        ipv4.address=192.168.1.1/24 \
        ipv6.address=none \
        ipv4.dhcp=true

    lxc profile create lan-profile
    lxc profile device add lan-profile root disk path=/ pool=default
    lxc profile device add lan-profile enp1s0 nic name=mylan network=lanA

    lxc launch ubuntu:focal instA --profile lan-profile
    lxc network attach lanA instA enp1s0

I am trying to create mulitple interfaces for a single instance and can't very well do that if I can't get just one interface right. In the 'lxc profile device add' above, I have 'name=mylan', but it still seems to have used 'eth0' for the name.

Thoughts?

---

$ lxc network list
Code:

+----------+----------+---------+-------------+---------+
|  NAME  |  TYPE  | MANAGED | DESCRIPTION | USED BY |
+----------+----------+---------+-------------+---------+
| br0      | bridge  | NO      |            | 1      |
+----------+----------+---------+-------------+---------+
| br-int  | bridge  | NO      |            | 0      |
+----------+----------+---------+-------------+---------+
| docker0  | bridge  | NO      |            | 0      |
+----------+----------+---------+-------------+---------+
| eno1    | physical | NO      |            | 0      |
+----------+----------+---------+-------------+---------+
| lanA    | bridge  | YES    |            | 2      |
+----------+----------+---------+-------------+---------+
| lxcbr0  | bridge  | NO      |            | 0      |
+----------+----------+---------+-------------+---------+
| lxdbr0  | bridge  | YES    |            | 1      |
+----------+----------+---------+-------------+---------+
| virbr0  | bridge  | NO      |            | 0      |
+----------+----------+---------+-------------+---------+
| wan      | bridge  | YES    |            | 0      |
+----------+----------+---------+-------------+---------+
| wlp110s0 | physical | NO      |            | 0      |
+----------+----------+---------+-------------+---------+

$ lxc profile show lan-profile
Code:

config: {}
description: ""
devices:
  enp1s0:
    name: mylan
    network: lanA
    type: nic
  root:
    path: /
    pool: default
    type: disk
name: lan-profile
used_by:
- /1.0/instances/instA

Or am I reading it wrong because according to this, it appears to just be a name?

$ lxc config show instA --expanded
Code:

architecture: x86_64
config:
  image.architecture: amd64
  image.description: ubuntu 20.04 LTS amd64 (release) (20231011)
  image.label: release
  image.os: ubuntu
  image.release: focal
  image.serial: "20231011"
  image.type: squashfs
  image.version: "20.04"
  volatile.base_image: 1ff1055f282309f25c3c43ad3a2dba2e6c585c45dee442e3e831335d6889643d
  volatile.enp1s0.host_name: veth131b22a0
  volatile.enp1s0.hwaddr: 00:16:2b:46:23:22
  volatile.enp1s0.name: eth0
  volatile.idmap.base: "0"
  volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
  volatile.last_state.power: RUNNING
  volatile.uuid: 07cddd05-0b4d-427a-ab91-91542bd463bf
devices:
  enp1s0:
    network: lanA
    type: nic
  root:
    path: /
    pool: default
    type: disk
ephemeral: false
profiles:
- lan-profile
stateful: false
description: ""


Virtual Machine

$
0
0
:::Just this morning I started looking into FREE VMs for Win 8. I've never used one and have a couple questions:::

1) The reason for this is to run my not-a-Cricut vinyl cutter, future purchase of a laser etcher/engraver (unless the one I found that claims to work on Linux actually does), and future purchase of a 3D printer (unless I find a Linux-compatable one).

2) I'll need to install peripheral drivers, so one compatible with the widest range is crucial... if that's ever an issue.

3) My Linux disrtro is 64bit Xubuntu 23.04.

These are probably "stupid questions" to people who know what they're doing.

Workaround for Parallels issues with 23.04/23.10

$
0
0
I would like to post this in the Parallels forums, because there's a lot of consternation over a bug in the Parallels software that causes the VM to break after upgrading to 23.04/23.10. However, I can't seem to find a button that would allow me to post. So, I'm doing it here. I hope it's within the proper context for the subforum.

I realized that Parallels CAN run Ubuntu 23.04/23.10 if it's installed over Ubuntu Live Server.

So, the workaround is to

(1) Download an .iso image for Ubuntu Server at https://ubuntu.com/download/server for Intel Macs, or https://ubuntu.com/download/server/arm for M1/2/3 (Apple Silicon, since 2020) Macs. Download the 22.04 version, and you can upgrade later OR just download the 23.10 image and save time.

(2) Create a new VM in Parallels, using the .iso image you just downloaded.

(3) Setup Ubuntu Live Server. Select the option to update the installer. I'm not sure whether this is necessary, but when prompted, I create a bond connection, setting the device to enp0s5 (which should be the only one available), then select it again, choose IP4, and set it to "automatically." Then create your user account, server name, passwords, encryption, etc.

(4) When the Ubuntu Server is installed and you've rebooted, type in "sudo apt install ubuntu-desktop." Let it install, may take an hour or two, depending on connection.

(5) After it's installed, hit "sudo reboot." (If you installed the Ubuntu Server 22.04 image, there's an additional step of entering "sudo do-release-upgrade -d". Reboot again.) You will now boot into Ubuntu Mantic Minotaur (Ubuntu 23.10) and Parallels will work fine with it.

(6) Install Parallels Tools. (Action > reinstall Ubuntu Parallels Tools).

(7) Transfer the contents of your home directory to the new VM.

[ubuntu] Wsl

$
0
0
hey, this is my first time here. I was trying to set up a wsl for a uni project and i run it some problems.
1- when i try to edit some files i get "such file or directory"/"sshd: unrecognized service"
2- i tried to install x11 apps and when I try to run for exemple xeyes I get "Error: Can't open display:"

Tool for deploying multiple (+12) VM instances at once?

$
0
0
What is that tool used for launching +12 bare-bone VM instances where each is a different prepackaged *nix operating system automatically deployed in their own terminal emulator simultaneously?​

I've seen Michael Larabel over at Phoronix use this tool from time-to-time featured in his articles. He uses it to host the VM's locally, not in the cloud. In the screenshot of his desktop workstation, there are at least a dozen different nix shells, each showing screenfetch/neofetch demonstrating all their specs. In contrast, Docker and K8's is for deploying containers to the cloud but Mike deploys and hosts locally I believe.

I asked on the Phoronix forums 2 days ago. No one has replied yet. So I thought I would ask here too.

[ubuntu] Problem sharing files

$
0
0
Hi all,

VirtualBox
========
Host - Ubuntu 22.04
VM - Kubuntu 22.04

It took me more than an hour unable to sort out the problem of sharing files btw Ubunu 22.04 Host and Kubuntu 22.04 VM

VirtualBox Guest Edition has been installed

sharefolder has been created on Kubuntu

On Kubuntu Terminal:
$ ls -ald /home/satimis/sharefolder/
Code:

drwxrwxr-x 2 satimis satimis 4096 Dec  1 15:54 /home/satimis/sharefolder/
Also having run;
$ sudo usermod -a -G vboxsf "$USER"

Drag files from Ubuntu (host) Transfer folder
to:
Kubuntu VM sharefolder doesn't work

Is there a solution?
Or I have to install Samba to do the job?

Please help.

Thanks

Regards

Using timeshift to backup wsl2 Does it work ?

$
0
0
Hi,
I am a noob in restore software, but I am quite interested in it as I have quite frequent BSOD because of a 3rd party driver on windows that enables me to lower the fan speed of my clevo laptop, no other solution found to lower that laptop constant noise.

I'd like to do on a regular basis snapshots of wsl2, ideally live snapshots with linux tool, that would free me from diving into powershell scripting :P

I haven't found any tool stating explicitly the ability to do live snapsphots.
Anyway, I've just started to do a first snapshot of wsl2 and I am wondering if other people do that and if it works .
Thanks for your suggestions !

Should cloud-init be available within instance?

$
0
0
I have cloud-init 22.4 installed with LXD 5.0.2-r3 on a gentoo machine.

My problem is, when I start a gentoo instance, and then login to the instance with:

lxc exec test -- bash

When I run cloud-init status, I git
bash: cloud-init: command not found

However, I have profiles and network settings that I can see that have been executed on the instance which tells me that cloud-init was run when configuring the instance. But then, there are also some areas of the cloud-init settings that are not happening, like my user account is not being setup.

I'm a bit confused as how cloud-init is started. I thought cloud-init would get started when the instance starts and I should be able to command it within the instance.

Anyone have ideas?

[server] Installer Crash - Win11Pro Hyper-V - 32GB vDisk

$
0
0
Hello,

Following are the hardware details,

AMD Ryzen 5 1600 (no oc, full stock)
MSI A320 Chipset board
16GB (8x2) 2666 DDR4
Nvidia 730 2GB GPU
WD SN570 NVMe (Windows Boot & Software)
Crucial SATA SSD (Ubuntu Hyper-V vDisk)
WD 1TB SATA HDD (ubuntu server iso)
Windows 11 Pro (Latest, up-to-date, on default release channel, no beta or such)

I am using the latest Ubuntu Server ISO (latest 22.04.3 ISO) for the installation. Problem is, strangely the installer crashes every time when I try to install on 32GB vdisk with default partition scheme along with lvm set to max size available on default partition scheme. Installation works fine with anything lower or higher on vDisk value.

The crash happens as soon as I hit done on that partition page to proceed further

Bug or something wrong with my system?

Thanks.

Ubuntu Pro/Livepatch on ESXi

$
0
0
Hello all,

Hope I am in the right area.

I am about to begin a migration from CentOS 7.9 to Unbunto 22.04. I would like to include Ubuntu Pro/Livepatch in this migration, so I can handle patch management. A couple of questions before I begin:

1) Is the Livepatch om prem server supported on Ubuntu 22.04 or is it just 20.04?
2) I will be building these virtual instances on a cloud provider's VMware multi-tenant cloud. How does pricing for Ubuntu Pro work within the constructs of a provider's cloud?

If I am not in the right place could you point me in the right direction. Newbie here...

Thanks,
Steve

[LXD] lxc copy seems to not understand hardlinks with dir driver

$
0
0
Hi,

I have a container on one host node using the dir driver, inside this container rsnapshot is being used to create backups.

I am now migrating this container to another host node, same settings.

However, I’ve verified in the new rootfs that the incremental backup gets copied over and over again (no hardlinks are copied).

Is this the expected behavior?

How about other system files, can the CT become corrupted if a hard link is expected but instead a plain old file copy is written?

EDIT: this only happens when copying from remote via https, local lxc copy preserves hardlinks.

Thank you

Not showing the right ammount of threads (Linux NOOB)

$
0
0
Hello there just moved over from windows to linux and would like to get going on virtualization, but wen following a guide i got stuck on a problem.

the problem is that wen doing

egrep -c '(VMX|SVM)' /proc/cpuinfo

i got 0 , which makes no sense because i have a AMD Ryzen™ 9 3900X × 24

and virtualization is enabled and i have checked with

lscpu

and under were it says Virtualization feature it says AMD-V so at least from my understanding that means its enabled and i have also prior to doing that check made sure that its enabled in bios as well.

so im just trying to get some hints on were to start looking so i can solved the problem. thanks in advance :P


Virtualbox: Install driver for Konica Minolta Magicolor 465EN in Windows 10 guest

$
0
0
I am currently trying to somewhat future proof my parents' laptop. So far I installed Ubuntu 22.04.3 LTS, Virtualbox 6.1, Windows 10 pro 64bit as guest and the Corel Suite within the guest. Now I've hit a wall trying to install the driver for the Konica Minolta Magicolor 4650EN in Windows 10. The printer is plugged in via USB, both Ubuntu and Windows recognize it but Ubuntu couldn't find any compatible drivers. So I created a USB filter in Virtualbox, assigned the Magicolor to it and then tried several available Windows 10 drivers (PostScript, PCL6, PCL5 and I think PCL3 ) within the guest OS but no printing job ever reaches the printer. Sadly the error only says "Fehler beim Drucken" (error whole printing).

Is what I am trying to do even possible?
Am I missing something? If so what?
(I am not an Ubuntu expert so please assume a lot of ignorance on my part.)

Thanks for reading! Any suggestions?

Virtual Machine Not Working On Cloned Ubuntu 22.04

$
0
0
This is sort of a continuation of my previous Post:
https://ubuntuforums.org/showthread....5#post14172305

With the help of this forum I was able to clone my MBR ubuntu Desktop onto a GPT ESATA.

I built the ubuntu partition on the ESATA as follows:

1. Formatted an ESATA as GPT, and allocated an EXT4 partition.

2. Did a LIVE ubuntu ISO USB install onto the ESATA EXT4 partition

3. Booting with a USB, I rsync my ubuntu Desktop onto the ESATA EXT4 partition. In order to ensure the ESATA would boot, I Excluded the following files in the rsync command (--exclude-from=FILE). Here is the contents of the Exclude file:
- /boot
- /etc/fstab
- /etc/default/grub
- /etc/default/grub.d/*
- /etc/grub.d/*
- /etc/init.d/grub*
- /etc/pm/sleep.d/*grub-common
- /etc/kernel/post*.d/zz-update-grub
- /lib/systemd/system/grub*
- /usr/bin/grub*
- /usr/lib/grub-legacy/*
- /usr/sbin/*grub*
- /usr/share/bash-completion/completions/grub*
- /usr/share/bug/grub-pc/*
- /usr/share/doc/grub-pc
- /usr/share/man/man8/grub*
- /usr/lib/grub/*
- /usr/sbin/grub*
- /usr/share/apport/package-hooks/*grub2*
- /usr/share/bug/grub-common/*
- /usr/share/grub/*
- /usr/share/man/man*/grub-*
- /usr/share/doc/grub-gfxpayload-lists/*
- /usr/share/grub-gfxpayload-lists/*
- /usr/share/bug/grub-pc-bin/*
- /usr/share/lintian/overrides/grub-pc-bin
- /usr/share/bug/grub2-common/*
- /usr/share/grub/default/grub*
- /usr/share/info/grub*

4. sudo apt install --reinstall bcmwl-kernel-source (to get wifi working)

5. Virtual Machine is in its own partition on my Desktop - I rsync the ENTIRE Virtual Machine partition from the Desktop over to a newly created partition on the ESATA.


I BIOS disabled my SATA ubuntu Desktop, and booted the ESATA ubuntu - looks and feels identical to my Desktop - Except Virtual Machine is not working.

When I try to start my Windows 10 Vbox, I get 'Kernel Driver Not installed (rc = -1908)'

Quote:

The virtual box linux kernel driver is either not loaded or not set up correctly. Please reinstall virtualbox-dkms package and load the kernel module by execting 'modprobe vboxdrv' as root.
If your system has EFI Secure Boot enabled, you may also need to sign the kernel modules vboxdrv, vboxnetflt, vboxnetadp, vbocpci before you can load them.
Secure Boot is Enabled in the BIOS - it is greyed out so I can't change it, but Virtual machine works on the Desktop ubuntu so this should not matter.

When I boot from the Desktop SATA, VBox works fine. When I toggle over to the ESATA ubuntu I get the error.

I would not like to re-install VBox on the ESATA, as it was a lot of work for me to get a virtual WIN10 working.

Any thoughts ?
M...

Ubuntu will not recognize any USB in any of my ports. Why?

$
0
0
I am using Ubuntu 23.10.1. I keep getting an error that states:

"The device "PNY USB 3.2.2FD" was unable to connect to its ideal host controller. AN attempt will be made to connect this device to the best available host controller. This might result in undefined behavior for this device."

Then I get no USB icon in Ubuntu and no way to access it or the data I need on it.

I don't know what to do.

2 NICs on KVM host

$
0
0
I want to use my extra NIC card (1 port), that I have plugged into a PCIe slot, and assign it to my WG VPN vm. Trying to figure out how to either assign or passthru this nic. The KVM host is on Ubuntu 22.04 with a netplan file creating a bridge (br0) for my Nextcloud server to run on. I am not seeing a way to assign this other physical interface in virt-manager. The only option I see under network source is either br0 or Macvtap. Perhaps Macvtap? Or, can I set up a second bridge (br1) in the same .yaml file for this interface assignment? I’ve read some about PCI passthrough and the process seems tricky and not always reliable. I appreciate any ideas

Re-Platform to VMware Server

$
0
0
Hello all,

I am migrating/re-platforming a CentOS 7.9.2009 physical server to a VMware virtual server, with Ubuntu 22.04.3 being the new OS. As I begin this journey I want to ensure that I am on the best LTS for not only the OS but the kernel. I see that HWE is available and that will give me kernel 6.2, but it looks like kernel 6.6 is the next LTS kernel. Has anyone combined Ubuntu 22.04.3 and kernel 6.6 on a VMware virtual instance? Am I barking up a bad tree?

Thanks,
Steve

Installing ubuntu unity on virtual box

$
0
0
Installing Ubuntu Unity as a guest on an Fedora 39 host via virtualbox

Hvae completely installed it twice when i reboot it after final install of software it will not recognise the password that i put into the system during installation

I have no idea why and if anyone can throw some light on it i would appreciate it

[ubuntu] ubuntu 23.10.1 on vm

$
0
0
A while ago, i ran ubuntu 23.10.1 on a vm but the installer was very slow and froze. Is there any way to run ubuntu 23.10.1 on a vm?

[SOLVED] VirtualBox not working in Ubuntu 22.04 after upgrading to Kernel 6.5.0-14

$
0
0
VirtualBox not working in Ubuntu 22.04 after upgrading to Kernel 6.5.0-14
My situation is similar to this thread https://ubuntuforums.org/showthread.php?t=2055886
I have upgraded to Kernel 6.5.0-14 from the 6.1 series kernel and now Virtualbox stops working and requests that I load or recompile the Virtualbox kernel driver.
I ran
Code:

apt-get remove virtualbox virtualbox-dkms virtualbox-source
then
Code:

apt-get install virtualbox virtualbox-dkms virtualbox-source
It seems maybe there is no Virtualbox dkms package for the 6.5 series kernel as it looks like apt is pulling the 6.1 package for dkms. Anyway to solve this?

Quote:

USER@HOSTNAME:~/Downloads$ sudo apt-get install virtualbox-source virtualbox virtualbox-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libroar2 libwmf0.2-7
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
virtualbox-qt
Suggested packages:
vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
virtualbox virtualbox-dkms virtualbox-qt virtualbox-source
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/46.9 MB of archives.
After this operation, 178 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 260275 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_6.1.38-dfsg-3~ubuntu1.22.04.1_amd64.deb ...
Unpacking virtualbox-dkms (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Selecting previously unselected package virtualbox-source.
Preparing to unpack .../virtualbox-source_6.1.38-dfsg-3~ubuntu1.22.04.1_amd64.deb ...
Unpacking virtualbox-source (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_6.1.38-dfsg-3~ubuntu1.22.04.1_amd64.deb ...
Unpacking virtualbox (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_6.1.38-dfsg-3~ubuntu1.22.04.1_amd64.deb ...
Unpacking virtualbox-qt (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Setting up virtualbox-source (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Setting up virtualbox (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xeu virtualbox.service" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
× virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated)
Active: failed (Result: exit-code) since Sat 2024-01-13 14:08:00 EST; 3ms ago
Docs: man:systemd-sysv-generator(8)
Process: 476217 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
CPU: 23ms

Jan 13 14:08:00 HOSTNAME systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Jan 13 14:08:00 HOSTNAME virtualbox[476217]: * Loading VirtualBox kernel modules...
Jan 13 14:08:00 HOSTNAME virtualbox[476217]: * No suitable module for running kernel found
Jan 13 14:08:00 HOSTNAME virtualbox[476217]: ...fail!
Jan 13 14:08:00 HOSTNAME systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILURE
Jan 13 14:08:00 HOSTNAME systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Jan 13 14:08:00 HOSTNAME systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-dkms (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Loading new virtualbox-6.1.38 DKMS files...
Building for 6.5.0-14-generic
Building initial module for 6.5.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.5.0-14-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.38/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Setting up virtualbox-qt (6.1.38-dfsg-3~ubuntu1.22.04.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Viewing all 4211 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>