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

[ubuntu] KVM - Share folder between Host and Guest

$
0
0
Hi all,

I haven't run KVM for quite long time and am now coming back.

Share folder between Host and Guest
Host - Ubuntu 22.04 Desktop
Guest - Ubuntu 22.04

On Google search I found many threads. Would following article be right for me to follow?
Setup A Shared Folder Between KVM Host And Guest
https://ostechnix.com/setup-a-shared...ost-and-guest/

Please advise. Thanks

Regards

[ubuntu] Problem on bootup (see screen cap)

$
0
0
I recently had a power failure and my machine shut down after the battery ran out on my UPS and I wasn't home.

Now when I boot up my Linux virtual machine under Hyper-V, I get this and it goes on and on for hours. I think the VM is corrupted, but can't tell for sure because it just continues and continues and I don't know what is happening. I googled this but couldn't find anything that say what it's doing when it is doing this.




Can anyone tell me what's going on? My webserver is on this VM and I have a backup but it is corrupt. Something started happening about 4 or 5 days ago with the hard drive and I didn't notice until today. Now I'm stuck with a corrupt backup and no way to recover. Should I just leave this go and let it finish? The process is very, very slow, each line takes about 10-15 seconds to update.

Thanks!
Dan
Attached Images

[SOLVED] 20.04 Server w/ KVM + libvirt Error - No VMs can be created

$
0
0
So, I've been looking at this for about a week.

If I run virt-manager and try to create a new VM (there aren't any there now), the error is:
Quote:

Error: No hypervisor options were found for this connection.
This usually means that QEMU or KVM is not installed on your machine, or the KVM kernel modulus are not loaded.
Check KVM kernel modules:
Code:

$ lsmod |grep kvm
kvm_amd              155648  0
kvm                  1015808  1 kvm_amd
ccp                  102400  1 kvm_amd

They are there, loaded.

Next, check the packages:
Code:

$ dpkg -l qemu* |egrep '^ii'
ii  qemu                  1:4.2-3ubuntu6.26 amd64        fast processor emulator, dummy package
ii  qemu-block-extra:amd64 1:4.2-3ubuntu6.26 amd64        extra block backend modules for qemu-system and qemu-utils
ii  qemu-kvm              1:4.2-3ubuntu6.26 amd64        QEMU Full virtualization on x86 hardware
ii  qemu-system-common    1:4.2-3ubuntu6.26 amd64        QEMU full system emulation binaries (common files)
ii  qemu-system-data      1:4.2-3ubuntu6.26 all          QEMU full system emulation (data files)
ii  qemu-system-gui:amd64  1:4.2-3ubuntu6.26 amd64        QEMU full system emulation binaries (user interface and audio support)
ii  qemu-system-x86        1:4.2-3ubuntu6.26 amd64        QEMU full system emulation binaries (x86)
ii  qemu-utils            1:4.2-3ubuntu6.26 amd64        QEMU utilities

So, those are all that should be needed. Checking libvirt packages:
Code:

$ dpkg -l libvirt* |egrep '^ii'
ii  libvirt-clients                      6.0.0-0ubuntu8.16 amd64        Programs for the libvirt library
ii  libvirt-daemon                        6.0.0-0ubuntu8.16 amd64        Virtualization daemon
ii  libvirt-daemon-driver-qemu            6.0.0-0ubuntu8.16 amd64        Virtualization daemon QEMU connection driver
ii  libvirt-daemon-driver-storage-rbd    6.0.0-0ubuntu8.16 amd64        Virtualization daemon RBD storage driver
ii  libvirt-daemon-system                6.0.0-0ubuntu8.16 amd64        Libvirt daemon configuration files
ii  libvirt-daemon-system-systemd        6.0.0-0ubuntu8.16 amd64        Libvirt daemon configuration files (systemd)
ii  libvirt-glib-1.0-0:amd64              3.0.0-1          amd64        libvirt GLib and GObject mapping library
ii  libvirt0:amd64                        6.0.0-0ubuntu8.16 amd64        library for interfacing with different virtualization systems

Let's check the daemons,
Code:

$ sudo systemctl status libvirt*
● libvirtd.service - Virtualization daemon
    Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/libvirtd.service.d
            └─override.conf
    Active: active (running) since Wed 2023-05-31 08:59:40 EDT; 43min ago
TriggeredBy: ● libvirtd-ro.socket
            ● libvirtd.socket
            ● libvirtd-admin.socket
      Docs: man:libvirtd(8)
            https://libvirt.org
  Main PID: 5238 (libvirtd)
      Tasks: 19 (limit: 32768)
    Memory: 77.9M
    CGroup: /system.slice/libvirtd.service
            ├─2908 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
            ├─2909 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
            └─5238 /usr/sbin/libvirtd

May 31 09:38:11 hadar libvirtd[5238]: internal error: Cannot find suitable emulator for x86_64
May 31 09:38:11 hadar libvirtd[5238]: internal error: Failed to start QEMU binary /usr/bin/qemu-system-i386 for probing: qemu-system-i386: cannot create PID file>
May 31 09:38:11 hadar libvirtd[5238]: Failed to probe capabilities for /usr/bin/qemu-system-i386: internal error: Failed to start QEMU binary /usr/bin/qemu-syste>
May 31 09:38:11 hadar libvirtd[5238]: internal error: Failed to start QEMU binary /usr/bin/qemu-system-x86_64 for probing: qemu-system-x86_64: cannot create PID >
May 31 09:38:11 hadar libvirtd[5238]: Failed to probe capabilities for /usr/bin/qemu-system-x86_64: internal error: Failed to start QEMU binary /usr/bin/qemu-sys>
May 31 09:38:11 hadar libvirtd[5238]: unknown procedure: 436
May 31 09:38:15 hadar libvirtd[5238]: internal error: Failed to start QEMU binary /usr/bin/qemu-system-i386 for probing: qemu-system-i386: cannot create PID file>
May 31 09:38:15 hadar libvirtd[5238]: Failed to probe capabilities for /usr/bin/qemu-system-i386: internal error: Failed to start QEMU binary /usr/bin/qemu-syste>
May 31 09:38:15 hadar libvirtd[5238]: internal error: Failed to start QEMU binary /usr/bin/qemu-system-x86_64 for probing: qemu-system-x86_64: cannot create PID >
May 31 09:38:15 hadar libvirtd[5238]: Failed to probe capabilities for /usr/bin/qemu-system-x86_64: internal error: Failed to start QEMU binary /usr/bin/qemu-sys>

If I directly run /usr/bin/qemu-system-x86_64 (no options), I'm shown a new window with a VM trying to boot. Something between qemu and libvirt is screwed?

Now, I'm desperate. Time to check the system logs ...
Code:

$ egrep -i 'err|warn' /var/log/syslog
...
May 31 09:38:15 hadar libvirtd[5238]: Failed to probe capabilities for /usr/bin/qemu-system-i386: internal error: Failed to start QEMU binary /usr/bin/qemu-system-i386 for probing: qemu-system-i386: cannot create PID file: Failed to write pid file
May 31 09:38:15 hadar libvirtd[5238]: internal error: Failed to start QEMU binary /usr/bin/qemu-system-x86_64 for probing: qemu-system-x86_64: cannot create PID file: Failed to write pid file
...

Time to google those errors. Check for issues with the PID file first. The only result was that /var was full. Checking:
Code:

$ dft
Filesystem                        Type  Size  Used Avail Use% Mounted on
/dev/mapper/vg01-root01          ext4  35G  5.8G  27G  18% /
/dev/nvme0n1p3                    ext4  672M  145M  479M  24% /boot
/dev/nvme0n1p2                    vfat  50M  6.1M  44M  13% /boot/efi
/dev/mapper/vg01-tmp01            ext4  3.9G  88K  3.7G  1% /tmp
/dev/mapper/vg01-var01            ext4  20G  1.7G  17G  9% /var
/dev/mapper/vg01-home01          ext4  9.8G  5.0G  4.3G  54% /home
/dev/mapper/vg01-libvirt--01      ext4  134G  131G    0 100% /var/lib/libvirt
/dev/mapper/vg--hadar-lv--backups ext4  459G  23G  436G  5% /Backups

Plenty of room in /var/.

Next error ...
Quote:

Try stopping AppArmor and then restart libvirtd and relaunch virt-manager
sudo systemctl stop apparmor
Did that. Got a little farther, but still getting error.

Switched to attempting to use virsh to add an exist VM:
Code:

$ virsh define /tmp/Win7Ult.xml
error: Failed to define domain from /tmp/Win7Ult.xml
error: internal error: Failed to start QEMU binary /usr/bin/kvm for probing: qemu-system-x86_64: cannot create PID file: Failed to write pid file

Fresh 20.04 server install, not an upgrade.

Some system basic information:
Code:

$ inxi -bz
System:
  Kernel: 5.15.0-72-generic x86_64 bits: 64 Desktop: FVWM2 2.6.8
  Distro: Ubuntu 20.04.6 LTS (Focal Fossa)
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX B450-F GAMING v: Rev 1.xx
  serial: <filter> UEFI: American Megatrends v: 5003 date: 02/03/2023
CPU:
  6-Core: AMD Ryzen 5 5600G with Radeon Graphics type: MT MCP
  speed: 4198 MHz min/max: 1400/4200 MHz
Graphics:
  Device-1: AMD driver: amdgpu v: kernel
  Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati
  unloaded: fbdev,modesetting,vesa resolution: 1920x1200~60Hz
  OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.0-72-generic LLVM 12.0.0)
  v: 4.6 Mesa 21.2.6
Network:
  Device-1: Intel I211 Gigabit Network driver: igb
Info:
  Processes: 359 Uptime: 1h 13m Memory: 30.72 GiB used: 2.25 GiB (7.3%) Shell: bash
  inxi: 3.0.38

This is a Server install with a minimal WM-only GUI. No DE. It has been stable the last 2 weeks now. The hardware was running 18.l04 with KVM for the last 3+ yrs, upgraded to a newer Ryzen a few months ago and has been very stable. I rebooted it today to manually check the BIOS SVR was set. Why can't they just call it Virtualization?

BIOS has SVR enabled.
Code:

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

I've reinstalled all the KVM/QEMU/Libvirt packages ... but I didn't purge them first. Also, this system doesn't have IPv6 enabled. It is disabled by grub.

I'm not stuck, but would appreciate some help. Think I've checked all the bonehead stuff, but I can do some really bonehead things. Discovered some permission problems in /var/lib/libvirt/. Fortunately, I have another 20.04 system running lots of VMs that has the correct permissions, which I've setup. libvirt-qemu:kvm

Ideas?

[server] KVM auto iptables rules

$
0
0
Hello

I have virtual machines running on Ubuntu 22.04. I suddenly saw the default iptables rules arrive this morning. These rules cut off all internet access.


How can I turn off these firewall rules? I don't know why it came on automatically. I'm not running anything like Hooks. I already have my own iptables rules. I have more NAT rules. I don't have any filter rules.


How can I prevent firewall rules from coming automatically?

Thanks.

What laptop PC specs do I need to Virtualize Windows 10 with Lubuntu as host?

$
0
0
Hello Virtualization Forum:

I want to stop using Windows 10 as my primary Operating System and move back to Lubuntu LTS. (I stopped using Lubuntu on my newest PC about 5 1/2 years ago.) My present "newest" PC is an ACER E5-575-33BM that is about 6 years old with Windows 10 Home Edition; Processor Intel(R) Core(TM) i3-7100U CPU @ 2.40GHz 2.40 GHz, RAM 4.00 GB (3.87 GB usable), System Type: 64-bit operating system, x64-based processor.

I will probably get a newer, but refurbished PC laptop and I want to run that latest version of Lubuntu LTS with Windows 10 running on a Virtual Machine with Lubuntu as the host. (I would rather not spend unnecessary money on Windows 11.) Information from a previous post on Ubuntu Installation & Upgrade Forum here suggested that I should really have more than 4GB of RAM and also that there may be other requirements to be able to run Windows 10 as a virtual machine with Lubuntu as the host, see this later page of the same thread. In addition, apparently Lubuntu may have changed in that in 2020 it switched from being GTK-Gnome based to being based on Qt (which what KDE is based on). So maybe going back to Lubuntu will seem significantly different.

(I used to use Lubuntu LTS all the time on a different older PC (a Lenovo Ideapad Y510 about 10 years old) and in fact ran Windows XP on Virtualbox (with Guest additions) with Lubuntu as the host. But I had some problems connecting the Virtual Machine to the internet and also to the CD Disc reader. As I recall I eventually got the Virtual Machine with Windows XP to connect (at least to some extent) to the internet and the CD Disc reader. But, I also ended up creating a "Shared Folder" that allowed me to transfer files back and forth between the regular real Lubuntu Machine and the VM with Windows XP. And that worked pretty well.)

I would like to be able to connect the Windows 10 Virtual Machine (on my new, yet to be bought, PC laptop) to the internet and also the DVD/CD reader on the new laptop.

QUESTIONS:

Does anybody have any suggestions as to the specs a PC laptop should have to run the latest Lubuntu LTS as the OS with Windows 10 running in a Virtual Machine (Lubuntu as host)?

How much RAM should I have?

Do you think that another version of Ubuntu or Linux that is similar to Lubuntu LTS would work better for me because of the switch from GTK-Gnome to Qt in2020?

Any other comments or advice will be welcomed.

Thank you,

A.

Ping Ubuntu 22.04 Desktop to Virtual Machine Manager 4.0.0 VM Destination Host Unreac

$
0
0
Goal: Host machine running Virtual Machine Manager to have guest vm router on the LAN.
Host Ubuntu 22.04 Desktop 192.168.1.120 pinging VM router pfSense 192.168.1.1 error: Destination Host Unreachable.
The problem might be between netplan and libvirtd?
Code:

ubuntu@ubuntu:/etc/netplan$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.120 icmp_seq=1 Destination Host Unreachable

VMM automatically creates a bridge virbr0 and I don't know how to ignore it and use my created bridges NIC0-br0 and NIC1-br1.

Code:

ubuntu@ubuntu:/etc/netplan$ ip -c a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
      valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br1 state UP group default qlen 1000
    link/ether 1c:61:b4:6d:38:4f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::31ca:9227:dcb3:d09e/64 scope link noprefixroute
      valid_lft forever preferred_lft forever
3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UP group default qlen 1000
    link/ether a8:a1:59:6e:1f:8b brd ff:ff:ff:ff:ff:ff
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 52:54:00:88:b4:b4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
      valid_lft forever preferred_lft forever
7: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fe:54:00:33:3c:4b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fe33:3c4b/64 scope link
      valid_lft forever preferred_lft forever
8: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether fe:54:00:50:81:3f brd ff:ff:ff:ff:ff:ff
    inet6 fe80::fc54:ff:fe50:813f/64 scope link
      valid_lft forever preferred_lft forever
9: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 0a:d4:78:1f:cd:41 brd ff:ff:ff:ff:ff:ff
    inet 100.76.25.213/10 brd 100.127.255.255 scope global dynamic noprefixroute br0
      valid_lft 294sec preferred_lft 294sec
    inet6 2406:2d40:4100:8fb2:19c5:376e:1317:8ae1/64 scope global temporary dynamic
      valid_lft 197sec preferred_lft 47sec
    inet6 2406:2d40:4100:8fb2:8d4:78ff:fe1f:cd41/64 scope global dynamic mngtmpaddr
      valid_lft 197sec preferred_lft 47sec
    inet6 fe80::8d4:78ff:fe1f:cd41/64 scope link
      valid_lft forever preferred_lft forever
10: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether d2:da:46:a2:b2:3e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.120/24 brd 192.168.1.255 scope global noprefixroute br1
      valid_lft forever preferred_lft forever
    inet6 fe80::d0da:46ff:fea2:b23e/64 scope link
      valid_lft forever preferred_lft forever


Bridges I created:
Code:

ubuntu@ubuntu:/etc/netplan$ bridge link
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br1 state forwarding priority 32 cost 4
3: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br0 state forwarding priority 32 cost 100


NetworkManager configuration file:
Code:

ubuntu@ubuntu:/etc/netplan$ cat 01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  ethernets:
    enp2s0:
      dhcp4: true
    enp3s0:
      dhcp4: true
  bridges:
    br0:
      dhcp4: true
      interfaces:
        - enp3s0
    br1:
      dhcp4: false
      addresses: [192.168.1.120/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.8.8.8,8.8.8.4]
      interfaces:
        - enp2s0


Routes:
Code:

ubuntu@ubuntu:/etc/netplan$ ip r
default via 100.64.0.1 dev br0 proto dhcp metric 425
default via 192.168.1.1 dev br1 proto static metric 20426
34.120.255.244 dev br0 proto dhcp scope link metric 425
100.64.0.0/10 dev br0 proto kernel scope link src 100.76.25.213 metric 425
169.254.0.0/16 dev virbr0 scope link metric 1000 linkdown
192.168.1.0/24 dev br1 proto kernel scope link src 192.168.1.120 metric 426
192.168.100.1 dev br0 proto dhcp scope link metric 425
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown


Not sure if there's an iptables issue?
Code:

ubuntu@ubuntu:/etc/netplan$ sudo iptables -n -t nat -L
[sudo] password for ubuntu:
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Code:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
LIBVIRT_PRT all -- 0.0.0.0/0 0.0.0.0/0

Chain LIBVIRT_PRT (1 references)
target prot opt source destination
RETURN all -- 192.168.122.0/24 224.0.0.0/24
RETURN all -- 192.168.122.0/24 255.255.255.255
MASQUERADE tcp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
MASQUERADE udp -- 192.168.122.0/24 !192.168.122.0/24 masq ports: 1024-65535
MASQUERADE all -- 192.168.122.0/24 !192.168.122.0/24

WSL2 Ubuntu WSLg Lithuanian language input not working

$
0
0
Hi,

I would like to use WSLg applications on Win11, but I'm having trouble with those apps recognizing Lithuanian input.
I get this in weston.log:

Code:

[19:52:39.463] Client: ClientGetAppidReq: pid:468 appId:Gedit WindowId:0x6
[19:52:39.464] Client: LanguageImeInfo: ProfileType: 2 (TF_PROFILETYPE_KEYBOARDLAYOUT)
[19:52:39.464] Client: LanguageImeInfo: LanguageID: 0x427
[19:52:39.464] Client: LanguageImeInfo: LanguageProfileCLSID: GUID_NULL
[19:52:39.464] Client: LanguageImeInfo: ProfileGUID: GUID_NULL
[19:52:39.464] Client: LanguageImeInfo: KeyboardLayout: 0x10427
[19:52:39.464] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=us variant=(null) options=(null)
[19:52:39.466] rail_client_LanguageImeInfo_callback: new keyboard layout: 0x10427

But still input works as if US layout is enabled.

I do not know how all the bits and pieces work together to get the right layout.
May be there's some config file (like xkb config), where I could make changes myself - to make this work.

About my system:
Windows: Microsoft Windows 11 Pro, 10.0.22621 Build 22621
Linux: Ubuntu 22.04.2 LTS
WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1702


Thanks,
I can provide any additional info...

Windows 11 Hyper V Installation (Ubuntu 23.04) - Mouse Not Captured

$
0
0
Recently installed Ubuntu v 23.04 via Hyper V on Windows 11 64bit. The installation goes smoothly, and the guest is restarted. Once restarted, I am able to login. Once logged in, the mouse stops working. Looking at the lower right hand corner of the 'RDP' window, I noticed it says 'Mouse Not Captured'. Doing my research, I have seen people disable 'Enhanced Session Mode' - Didn't work, Run sudo apt upgrade - After all upgrades completed, mouse still doesn't work, Open VMConnect with the attempt to save my settings in the 'Options' area - Options are not available, so this doesn't work, Attempting to update the kernel via the text area - Appears to work, but the mouse is still not being captured. I use a Logitech MX Master 3S wireless mouse connected via Bolt receiver (No firmware updates are available).

Installing OS from USB ti VirtualBox

$
0
0
Without an optical drive, how would one install an OS from a bootable USB stick to Virtualbox. It only lists floppy, CD/DVD, and HDD as bootable sources -- no USB.

Securing VMs

$
0
0
Hello everyone! I am not doing VMs right now, only reading. I have read more than once in this forum, the importance of 'Securing VMs'.

So, I have started looking and see similar suggestions as in this page:

https://www.computerworld.com/articl...vironment.html

What should be added to or taken away from that list? Thanks

Ubuntu 20.4 login

$
0
0
Hi,

I use VMware Workstation 15 Player to run Ubuntu in Windows. Since 2-3 weeks, I am no longer able to login. Once I enter the password, it returns me to the main login page. I searched for a solution but unfortunately I can not log into the Shell to check the .Xauthority file as suggested by some people. I have Lenovo laptop and used Ctrl Alt F3 key combination with no luck. Any hints please?

Thanks in advance

[ubuntu] Beug virtualsation

$
0
0

Bonjour,
à l'installation d'Ubuntu LTS en mode iso sur VirtualBox 7.0. Jai ceci qui est affiché dans le bureau virtuel.
Mon ordi est équipé d'un:
-Processeur AMD Ryzen 7 7840HS w/ Radeon 780M Graphics 3.80 GHz
-Mémoire RAM installée 16,0 Go (15,2 Go utilisable)
-Type du système Système d’exploitation 64 bits, processeur x64

Merci d'avance
Attached Images

Ubuntu 22.04.3 LTS on Hyper-V (Windows 11 Pro) Enhanced session not working

$
0
0
Hi,
I have this fully updated Ubuntu Pro installation, but I'm not able to adjust the display settings on the Hyper-V virtual machine.
The VM is "Generation 2", so it should work from the Hyper-V side. It works fine with the other Microsoft VM's.
The Ubuntu "Screen display" settings are also locked at 1024x768 (4:3) and showing "Unknown Display".
Is it something with the integration services? If yes, then what can I do?

Thanks.

[other] Multipass cloud-init-config is not updating based on multipassd-vm-instances.json

$
0
0
Hi,

I'm a new user of multipass. I use it on Windows 11 home with Virtualbox(7.0.10-158379), multipass 1.12-2-win.
I created an instance as in the manual without any options except the name.
multipass launch jammy --name test1
I realized later, the instance doesn't receive IP address from my local network. It cannot be reached, just by multipass shell command.
I found this post for a possible solution.
Add ability to add --networks to existing instances #2476
I added this below to the multipassd-vm-instances.json
"extra_interfaces": [
{
"auto_mode": false,
"id": "en0",
"mac_address": "52:54:00:ab:c3:0d"
}
],
Actually it did not matter what was the id name, auto_mode or mac_address. I tried all of them with different values.
It didn't work. Later I found out, the multipass is not updating the cloud-init-config file. It doesn't have the network-config file.
I created another instance with --network name="Ethernet 2" mode=auto
"Ethernet 2" the network interface name on this Windows

multipass launch jammy --name test3 --network name="Ethernet 2" mode=auto

This instance receives IP address from the local network and cloud-init-config file has the proper network-config file.

Question: What I did wrong? How can I add/modify the network interfaces to existing instances?

Broken IOMMU ?

$
0
0
Hello,

I was very happy with my fully working Windows 10 VM under KVM using a dedicated Radeon graphic card (PCI passthrough) since months. Yesterday, I was playing a game then I normally shut down Windows 10. After 20 minutes, the shut down process was stuck. Anyway I forced the VM to shut down, then I shut down Ubuntu. Today, I turn on my computer and I am surprised to see my second graphic card up on Ubuntu (22.04, kernel 5.19) since it is reserved for my VM (I did not process any update at that time).

I checked the vfio-pci drivers in use :

Code:

lspci -nnv | grep vfio
but no output.

Also in the grub file:

Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on kvm.ignore_msrs=1 vfio-pci.ids=1002:6985,1002:aae0"
the parameters are ok.

Code:

sudo dmesg | grep "Virtualization Technology for Directed I/O"
[    2.253556] DMAR: Intel(R) Virtualization Technology for Directed I/O

Code:

sudo dmesg | grep -i iommu
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.2.0-26-generic root=UUID=d4f0846c-16f0-4562-b0fc-232b42ec0005 ro quiet splash intel_iommu=on kvm.ignore_msrs=1 vfio-pci.ids=10de:102d vt.handoff=7
[    0.710282] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.2.0-26-generic root=UUID=d4f0846c-16f0-4562-b0fc-232b42ec0005 ro quiet splash intel_iommu=on kvm.ignore_msrs=1 vfio-pci.ids=10de:102d vt.handoff=7
[    0.710386] DMAR: IOMMU enabled
[    1.637402] DMAR-IR: IOAPIC id 3 under DRHD base  0xf7ffc000 IOMMU 0
[    1.637404] DMAR-IR: IOAPIC id 1 under DRHD base  0xf3ffc000 IOMMU 2
[    1.637405] DMAR-IR: IOAPIC id 2 under DRHD base  0xf3ffc000 IOMMU 2
[    2.135408] iommu: Default domain type: Translated
[    2.135408] iommu: DMA domain TLB invalidation policy: lazy mode
[    2.214090] DMAR: IOMMU feature sc_support inconsistent
[    2.214092] DMAR: IOMMU feature dev_iotlb_support inconsistent
[    2.214216] pci 0000:00:1b.0: Adding to iommu group 0
...

I do not know if the lines in bold were there before the trouble.

I tried again :
Code:

sudo update-grub
then reboot.
But vfio-pci drivers do not show up anymore.

Finally, I updated Ubuntu loading kernel 6.2. Reboot. But same issue.
I tried to declare another device using the grub, but same issue.
Something is broken, but I did not get clue to understand where.

Any idea ?

Thank you.

Dell Precision T7810
nVidia Quadro K6000 (main)
AMD Radeon WX3100 (for VM)
Ubuntu 22.04
KVM
Windows 10

[server] AppArmor issues with Libvirt

$
0
0
I have a fresh Ubuntu Server 22.04.3 and Debian 12.1.0 installed and updated. Along with Cockpit and Cockpit virtual machines on both tests machines.


I am getting the following errors and warning when looking at the log section in Cockpit:




Code:

Failed to read AppArmor profiles list '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd






Failed to open file '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd






Failed to read AppArmor profiles list '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd






Failed to open file '/sys/kernel/security/apparmor/profiles': Permission denied libvirtd






The virtual machines start up and has no issues. However, the errors pop up after every reboot once I click the virtual machines section on Cockpit. These errors only show then, and not when I do NOT go to virtual machines section in Cockpit. So it seems to only start once you go to that section in Cockpit.


The /etc/apparmor.d/usr.sbin.libvirtd does have the line:


Code:

/sys/kernel/security/apparmor/profiles r,

My user has also been added to groups libvirt, kvm and sudo.


Also, when running the following command without sudo and not as root on the terminal, then I also get a permission denied. I checked the folder permissions and it does have read permissions and belong to the group root:


Code:

cat /sys/kernel/security/apparmor/profiles

Has anyone else experience this issue? Any solution to get it fixed with or without disabling AppArmor for KVM? or can the errors be safely ignored?




Thank you to the person who has a solution to this.

[ubuntu_studio] VIRTUALBOX Failed to Open Session

$
0
0
Can't find where this was Posted, so Resubmitting ....

Running Virtualbox v6.1.38 / Windows for Trading Platform with quotes, data, charts etc. for years - Therefore any help is appreciated.



VIRTUALBOX ERROR / DETAILS

Code:

Failed to open a session for the virtual machine XP32-2.

Failed to open image '/media/stephen/Data/VirtualBox VMs/XP32-2/XP32-2.vdi' for writing due to wrong permissions (VERR_VD_IMAGE_READ_ONLY).

PIIX3 cannot attach drive to the Primary Master (VERR_VD_IMAGE_READ_ONLY).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

PARTIAL LOG FILE:

Code:

00:00:01.679360 GUI: UIDesktopWidgetWatchdog::sltHandleHostScreenAvailableGeometryCalculated: Screen 1 work area is actually resized to: 0x28 x 1280x996
00:00:01.691094 File system of '/home/stephen/VirtualBox VMs/XP32-2/Snapshots' (snapshots) is unknown
00:00:01.691114 File system of '/media/stephen/Data/VirtualBox VMs/XP32-2/XP32-2.vdi' is ext4


Where did my "snapshots" folder go?

and, When i run ...

Code:

dpkg --list virtualbox-* in terminal, I get:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                          Version                      Architecture Description
+++-==============================-=============================-============-============================================================
un  virtualbox-2.0                <none>                        <none>      (no description available)
un  virtualbox-2.1                <none>                        <none>      (no description available)
un  virtualbox-2.2                <none>                        <none>      (no description available)
un  virtualbox-3.0                <none>                        <none>      (no description available)
un  virtualbox-3.1                <none>                        <none>      (no description available)
un  virtualbox-3.2                <none>                        <none>      (no description available)
un  virtualbox-4.0                <none>                        <none>      (no description available)
un  virtualbox-4.1                <none>                        <none>      (no description available)
un  virtualbox-4.2                <none>                        <none>      (no description available)
un  virtualbox-4.3                <none>                        <none>      (no description available)
un  virtualbox-5.0                <none>                        <none>      (no description available)
un  virtualbox-5.1                <none>                        <none>      (no description available)
un  virtualbox-5.2                <none>                        <none>      (no description available)
un  virtualbox-6.0                <none>                        <none>      (no description available)
un  virtualbox-6.1                <none>                        <none>      (no description available)
ii  virtualbox-dkms                6.1.38-dfsg-3~ubuntu1.20.04.1 amd64        x86 virtualization solution - kernel module sources for dkms
in  virtualbox-ext-pack            <none>                        all          (no description available)
un  virtualbox-guest-additions-iso <none>                        <none>      (no description available)
un  virtualbox-guest-dkms          <none>                        <none>      (no description available)
un  virtualbox-guest-modules      <none>                        <none>      (no description available)
un  virtualbox-modules            <none>                        <none>      (no description available)
ii  virtualbox-qt                  6.1.38-dfsg-3~ubuntu1.20.04.1 amd64        x86 virtualization solution - Qt based user interface
ii  virtualbox-source              6.1.38-dfsg-3~ubuntu1.20.04.1 amd64        x86 virtualization solution - kernel module source
~

Checking if DKMS is installed:

Code:


MS-7640:~$ dpkg -l | grep virtualbox-dkms
ii  virtualbox-dkms                              6.1.38-dfsg-3~ubuntu1.20.04.1              amd64        x86 virtualization solution - kernel module sources for dkms


If I uinstall it, install DKMS and Rebuild it, will I lose all data I had in the VM ??


After closing the VM, and Running again I get this Error inside the VBox Window;

"Windows could not start because the following file is mising or corrupt;
\WINDOWS\SYSTEM32\CONFIG\SYSTEM
You can attempt to repair this file by starting Windows Setup using the original Setup CD-Rom.
Select 'r' at the first screen to start repair."

[server] vboxlinuxadditions guest

$
0
0
Hi,

Want to add guest additions on server, went to deviced -> upgrade guest additions.
Ran up to 60% and then gave an error:
Running update file "/bin/sh" on guest failed: VERR_INTERNAL_ERROR_5.

What is internal error 5? Has anyone had this problem before? Did you solve it?

libvirtd not running

$
0
0
i am running ubuntu as a wsl to use qemu but libvirtd is not running even though i have it installed

Stuck while installing Ubuntu on Virtualbox: Freeing initrd memory

$
0
0
I have been trying to install Ubuntu 22.04.3 on Virtualbox 7.0 and I am facing the following issue:


So I tried to install Ubuntu 20.04.6 after that and faced the same error (but a different memory size):



Earlier I has installed Ubuntu 20.04 on Virtualbox on my Lenovo ideapad and it worked fine but I am facing the above error while installation on my new Asus TUF laptop. It would be great if anyone can guide me through this.
Viewing all 4211 articles
Browse latest View live