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

VPN connected to Windows 11 host does it automatically cover Ubuntu as the guest

$
0
0
Hi, I do not think I need to do anything to make my IP address hidden in Ubuntu guest since I installed a VPN in my host windows 11 but I want to make sure and see if there is anything I can do to make my connection more secure in Ubuntu.

Thanks for all help.

Mouse stopped working on Ubuntu VM

$
0
0
Hi,

I've been using Ubuntu 22.04.3 virtual machine on Windows 10 with VirtualBox 7.0.10 for some time and everything was good. But suddenly, the mouse stopped working properly. I can use the icons in the sidebar but I can't click on anything in opened windows. Interestingly, after opening a new app window, I can drag it but only once. If I try to do it again, nothing happens and I have to reopen the application. I have to close apps by right-clicking on their icons in the sidebar because I can't click the X button, among the others.


I've tried different solutions like:


- disabling and enabling Mouse Integration
- changing pointing device to PS/2 Mouse, USB Tablet or even USB Multi-Touch Tablet
- killing drag&drop processes
- unchecking Enable Nested Paging in Acceleration settings

but nothing helped. What else can I do?

[server] Docker compose issues on 22.04.3

$
0
0
I have the following script and Docker compose file, that worked great for years, but now no longer. I wasn't sure where to post this, so I thought I would start here. So far I haven't had much luck finding a solution via Google. Thank you in advance.

My Update Script
Code:

server@home:~/scripts$ more update-plex.sh
#!/usr/bin/bash
cd /opt/docker/compose/plex
sudo /usr/bin/docker-compose pull pms-docker;
sudo /usr/bin/docker-compose rm -fs pms-docker;
sudo /usr/bin/docker-compose up -d pms-docker;

My Compose File
Code:

erver@home:~/scripts$ more /opt/docker/compose/plex/docker-compose.yml
version: '3.3'
services:
    pms-docker:
        container_name: plex
        network_mode: host
        restart: always
        environment:
            - PLEX_UID=997
            - PLEX_GID=997
            - TZ=America/Los_Angeles
            - PLEX_CLAIM=XXX
        volumes:
            - '/opt/docker/container-data/plex:/config'
            - '/tmp:/transcode'
            - '/mnt/NAS2/Media:/Media'
        image: plexinc/pms-docker

Script Output (Docker Python errors)
Code:

erver@home:~/scripts$ ./update-plex.sh
[sudo] password for server:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
  File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
  File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 496, in _make_request
    conn.request(
TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
  File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
  File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 496, in _make_request
    conn.request(
TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
  File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
  File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 790, in urlopen
    response = self._make_request(
  File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 496, in _make_request
    conn.request(
TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
  File "/usr/lib/python3/dist-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
  File "/usr/lib/python3/dist-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'

[SOLVED] Oracle virtual box in ubuntu host

$
0
0
In my Ubuntu Desktop I use Linux Mint in Oracle Virtual Box. Last month also it was fine. But today when I tried to open the Virtual Box I got the following message.
Code:

Failed to open a session for the virtual machine LINUX MINT.

The virtual machine 'LINUX MINT' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}

Like to know the way out.

Total noob question

$
0
0
I am totally new to linux!!
I have installed the latest version of ubunto using VirtualBox on an external USB3 drive and everything works as expected.
I can't for the life of me install ComfyUI from Terminal by following the directions on the ComfyUI website.
I have a Nvidia graphics card and none of the directions on the ComfyUI website work.
When I open terminal and run from there, nothing works.
I always get an error message saying that ";" is expected after something.
Not sure where to put that ";"
I tried running from Root and nothing works.
I created a CumfyUI folder and opened terminal from there and nothing worked.
I have a lot of learning to do and hope I can get a bit of direction here.
Your help would be greatly appreciated
Ron L


ADDITIONAL INFO: I used Oracle VM VirtualBox to install ubunto-22.04.3-desktop-amd64.iso. Is this copy of ubuntu only for AMD machines? I am using an i7/12 core computer running Win 11 Pro.
It looks like I should be learning how to do this:
Manual Install (Windows, Linux)

Git clone this repo.
Put your SD checkpoints (the huge ckpt/safetensors files) in: models/checkpoints
Put your VAE in: models/vae
Note: pytorch stable does not support python 3.12 yet. If you have python 3.12 you will have to use the nightly version of pytorch. If you run into issues you should try python 3.11 instead.


Sorry for putting you all through this. I have to learn how to Git clone a repo

I have a lot to learn and thank you all for even responding
Ron L



Systemd-networkd-wait-online and slow boot

$
0
0
I have a Xen VPS which is booting slowly. OS is Ubuntu 22.04, originally upgraded from 20.04. In recent months (since 30 September, to be precise), it's taking ages to boot.

The culprit turns out to be systemd-networkd-wait-online, with its obligatory 2-minute wait if it's not happy for some reason.

networkctl shows
Code:

IDX LINK    TYPE    OPERATIONAL SETUP   
  1 lo      loopback carrier    unmanaged
  2 bond0    bond    off        unmanaged
  3 dummy0  ether    off        unmanaged
  4 teql0    void    off        unmanaged
  5 gre0    ipgre    off        unmanaged
  6 gretap0  ether    off        unmanaged
  7 erspan0  ether    off        unmanaged
  8 ip_vti0  tunnel  off        unmanaged
  9 ip6_vti0 tunnel6  off        unmanaged
 10 sit0    sit      off        unmanaged
 11 ip6tnl0  tunnel6  off        unmanaged
 12 ip6gre0  ip6gre  off        unmanaged
 13 eth0    ether    routable    unmanaged

which looks to me like systemd-networkd isn't managing anything.

(The hosting people are using ifupdown to manage the network.)

If it's relevant, just before the first problematic boot, I ran apt upgrade and it pulled in several systemd-related packages.

From apt/history.log:
Code:

Start-Date: 2023-09-30  19:39:05
Commandline: apt upgrade
Requested-By: user (1000)
Upgrade: udev:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), openssh-client:amd64 (1:8.9p1-3ubuntu0.3, 1:8.9p1-3ubuntu0.4), systemd-timesyncd:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), libpam-systemd:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), ssh:amd64 (1:8.9p1-3ubuntu0.3, 1:8.9p1-3ubuntu0.4), libsystemd0:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), libnss-systemd:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), openssh-server:amd64 (1:8.9p1-3ubuntu0.3, 1:8.9p1-3ubuntu0.4), systemd:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), libudev1:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), libc6:amd64 (2.35-0ubuntu3.1, 2.35-0ubuntu3.3), locales:amd64 (2.35-0ubuntu3.1, 2.35-0ubuntu3.3), libc-dev-bin:amd64 (2.35-0ubuntu3.1, 2.35-0ubuntu3.3), openssh-sftp-server:amd64 (1:8.9p1-3ubuntu0.3, 1:8.9p1-3ubuntu0.4), libc-bin:amd64 (2.35-0ubuntu3.1, 2.35-0ubuntu3.3), libc-devtools:amd64 (2.35-0ubuntu3.1, 2.35-0ubuntu3.3), libc6-dev:amd64 (2.35-0ubuntu3.1, 2.35-0ubuntu3.3), systemd-sysv:amd64 (249.11-0ubuntu3.9, 249.11-0ubuntu3.10), ubuntu-advantage-tools:amd64 (28.1~22.04, 29.4~22.04)
End-Date: 2023-09-30  19:39:32

What could I do to stop this delay? Do I need systemd-networkd at all? I'm hesitant to just try disabling or removing things, since I don't want to end up breaking anything.

[ubuntu] Run a kvm guest with a .elf?

$
0
0
Hi!

I want to boot a standalone application (I have the .elf file) on a KVM guest in an UltraScale platform. I am new with KVM and I'm using kvmtool, but I don't know how can I run a guest running my application. I would appreciate any help.

Thanks!

[other] Unity 23.10

$
0
0
I'm currently running Unity 23.10 in a virtual box. When I try to invoke the workspace switcher it doesn't respond in that it isn't placed on the task bar (Panel). Is this just an issue with VB or will I experience the same issue if I install it on my machine ?

Thanks,
Bruce

Ubuntu 14 vs 20x File Copy Performance Slow

$
0
0
The Issue: File Copies within a mount point are fast on Ubuntu 14 and slow on Ubuntu 20x Case Setup:
2 Different VCenters located in different physical locations using their own esxi hosts and datastores.
Installed 4 virtual servers using the exact same options including CPU, MEM, HD ext4 Config, SCSI, etc.
2 of these servers are installed in VCenter1. Server1 Ubuntu 14, Server2 Ubuntu 23
2 other servers installed in VCenter2. Server3 Ubuntu 14, Server4 Ubuntu 24

During installation, I chose only RemoteSSH as an extra option. After, I ran standard package updates for existing packages, installed latest vm-tools.
In both locations, the Ubuntu 14 servers were significantly faster than Ubuntu 23 when performing a simple file copy test:
Sample output:
Server1 Ubuntu 14:/d01/user# time for ((i = 0 ; i < 10 ; i++ )) ; do cp ubuntu-20.04.6-live-server-amd64.iso test.iso ; rm test.iso ; done
real 0m24.171s user 0m0.068s sys 0m11.012s
Server2 Ubuntu 23:/d01/user# time for ((i = 0 ; i < 10 ; i++ )) ; do cp ubuntu-20.04.6-live-server-amd64.iso test.iso ; rm test.iso ; done
real 0m47.093s user 0m0.011s sys 0m38.125s
The same results for Server3 and Server4 on the 2nd VCenter located in another datacenter.

Server1: hdparm -Tt /dev/sdb /dev/sdb: Timing cached reads: 16160 MB in 2.00 seconds = 8085.73 MB/sec Timing buffered disk reads: 498 MB in 3.01 seconds = 165.26 MB/sec
Server2: hdparm -Tt /dev/sdb /dev/sdb: Timing cached reads: 10482 MB in 1.99 seconds = 5274.00 MB/sec Timing buffered disk reads: 776 MB in 3.00 seconds = 258.65 MB/sec

IOStat Snippet during File Copy:
Server1: iostat -dx 2 | grep -E "Device|sdb" | tee /tmp/Server1_iostat_sdb_log.txt Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util sdb 0.00 0.35 5.73 13.11 1093.82 12694.15 1463.88 1.70 90.00 6.28 126.60 2.12 4.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util sdb 0.00 0.50 0.00 49.00 0.00 33792.00 1379.27 3.27 37.96 0.00 37.96 1.02 5.00 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util sdb 0.00 0.00 0.00 514.43 0.00 526774.13 2048.00 41.65 83.71 0.00 83.71 1.66 85.37 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util sdb 0.00 0.00 0.54 465.41 2.16 458862.70 1969.61 106.03 206.17 268.00 206.10 1.94 90.59

Server2: iostat -dx 2 | grep -E "Device|sdb" | tee /tmp/Server2_iostat_sdb_log.txt Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util sdb 0.00 0.00 0.00 0.00 0.00 0.00 347.00 403456.00 0.00 0.00 101.41 1162.70 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 35.19 66.00 Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util sdb 0.00 0.00 0.00 0.00 0.00 0.00 40.50 47104.00 0.00 0.00 40.65 1163.06 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.65 7.20 Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util sdb 0.00 0.00 0.00 0.00 0.00 0.00 300.00 329822.00 20.00 6.25 41.83 1099.41 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 12.55 55.80 Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util sdb 0.00 0.00 0.00 0.00 0.00 0.00 225.50 262144.00 0.00 0.00 172.07 1162.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 38.80 54.60 Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util sdb 0.00 0.00 0.00 0.00 0.00 0.00 173.50 188462.00 12.00 6.47 61.69 1086.24 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 10.70 40.00 Device r/s rkB/s rrqm/s %rrqm r_await rareq-sz w/s wkB/s wrqm/s %wrqm w_await wareq-sz d/s dkB/s drqm/s %drqm d_await dareq-sz f/s f_await aqu-sz %util sdb 0.00 0.00 0.00 0.00 0.00 0.00 342.50 398288.00 0.00 0.00 68.18 1162.88 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 23.35 61.40
I have attempted several changes on Server2 to which include: modify dirty kernel parameters, disable snapd, various mount options, different scheduler options(none, noop, etc), verified virtio is installed, grub GRUB_CMDLINE_LINUX_DEFAULT changes, sysctl parameters, hugepages, e2fsck, tune2fs, sync drop_caches, ntp stop, and a few more OS level changes.
I removed journaling from sdb1 ext4 on Server2. No file copy performance improvements.

Here are a few more details for consideration as to why Ubuntu20x is slower than Ubuntu14 within our VCenter:
ESXi Host version that both Server1 and Server2 reside:
Hypervisor: VMware ESXi, 6.7.0, 17499825

Datastore that both Server1 and Server2 vmdks reside: Type: NFS 3

If anyone knows where the smoking gun resides or has any advised direction, I truly appreciate your assistance.

Permission denied on libvirt/images folder when try to boot the VM

$
0
0
I was getting a permission denied on Could not open '/var/lib/libvirt/images/servername-sda when try to boot the VM which was migrated from VMware. I am using virt-v2v tool.
but once I remove the disk and re-add it, it can boot up fine. It make me wonder it may not be a permission issue.
Also this only happened when VM was migrating from VMware using virt-v2v. I have no issue with a new build VM in KVM.
The Ubuntu version is 23.04.
Dose anyone has similar issue or any idea how to fix this?

error:

Error starting domain: internal error: process exited while connecting to monitor: 2024-02-13T15:21:41.609882Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/var/lib/libvirt/images/servername-sda","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/var/lib/libvirt/images/servername-sda': Permission denied



Thank you.

cant create a new empty VM beacuse QEMU failed to run feature checks

$
0
0
I would like to create a new empty VM using windows image

Code:

lxc init win11 --vm --empty
But that fails with the information that

Quote:

Creating win11
Error: Failed creating instance record: Instance type "virtual-machine" is not supported on this server: QEMU failed to run feature checks
After a while i got this message when I tried to initialize lxd again

Quote:

ERROR [2024-02-15T16:45:15+01:00] Failed to start the daemon err="LXD is already running"
ERROR [2024-02-15T16:45:15+01:00] Unable to run feature checks during QEMU initialization: Unable to locate the file for firmware "OVMF_CODE.4MB.fd"
WARNING[2024-02-15T16:45:15+01:00] Instance type not operational driver=qemu err="QEMU failed to run feature checks" type=virtual-machine
Error: LXD is already running
So I assume that the problem is the missing "OVMF_CODE.4MB.fd" file in /usr/share/OVMF/.

Installing
Code:

sudo apt install ovmf
wont do the job, so where can I get the file from.

[ubuntu_mate] Auto Redirect USB?

$
0
0
I have set my wife up a qemu vm running ubuntu mate on which I have installed Zoom for her. On her ubuntu 22.4 host (this could be confusing in that both the host and the vm are ubuntu mate 22.04) I have a script that runs a bash sh file that launches the vm, which in turn auto starts Zoom. The bash sh file on the host looks like:

Code:

#!/bin/bash
export LIBVIRT_DEFAULT_URI="qemu:///system"
/usr/bin/virsh start ubuntuvm
/usr/bin/virt-viewer -f -w -a ubuntuvm

Currently this works as I would like - the script launches a full screen Zoom screen for her. My Desktop does not have a webcam and I have just installed one and it works OK. My issue is that by launching vm this way I am not redirecting the relevant host usb port so the vm does not see the webcam. In virtual manager I can see that the webcam usb port is called USB C270 HD WEBCAM [046d:0825] at 1-3 - I was just wondering if there is some magic that can be added to my bash sh file that would auto connect/redirect this usb port? This is not a show stopper in that my wife could redirect manually, but if possible, I would like it all to be auto if possible.

[ubuntu] freeze on vmware 17.5 and ubuntu 22.04 and kernel 5.15

$
0
0
hello , my ubuntu freeze on vmware 17.5,could you help me ?

version ubuntu 22.04 and kernel 5.15 , vmware tools are not installed, but open-vm tools, yes

video proof :"https://we.tl/t-svHu7GxnEZ"

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy

uname -r
5.15.0-78-generic

[all variants] virt-manager networking without iptables binary?

$
0
0
Need to migrate from VirtualBox to virt-manager/KVM. Was able to install virt-manager, convert and boot some VDIs, but have been unable to make networking work in the VM.

Many of the network types available in virt-manager seem to require iptables (despite documentation saying it can also work with firewalld and firewalld being installed and active). However, this system intentionally does not have any iptables binary installed, because my nftables-based firewall contains some rules that are incompatible with iptables. (If I understand correctly, firewalld sets up nftables rules that work alongside and after my main nftables firewall.)

Host system is Xubuntu 22.04. Several guest types are involved, but at the moment I'm trying to make networking work on a Xubuntu 22.04 guest.

With Bridge or Macvtap, the VM at least boots, but in neither case can I get networking working - NetworkManager in the guest just continuously tries and fails to connect.

For Bridge I'm using nm-connection-editor to set up the bridge interface, and tried several different configurations. In case it's relevant, the host gets networking via Wi-Fi.

Would like to achieve the effects of 3 networking types from VirtualBox:
  • NAT: for Internet access with traffic to/from the VM filtered by the host's firewall,
  • Bridged: for when the VM should act as another physical machine on the same network as the host, without the host's firewall applying to the VM's traffic,
  • Host-only networking: for cases where networking is needed to connect to something on the host or another VM, but where allowing Internet access would be unsafe.


How to get these types of networking in virt-manager without having any iptables binary present on the system?

Thanks for any help.

[all variants] virt-manager custom video mode and screen size hint?

$
0
0
In VirtualBox, it's possible to specify a custom video mode that could be used by GRUB and provide screen size hint for the login screen. I used this to make GRUB, TTYs, login screen, and graphical session all have the same resolution.

How to set custom video mode and screen size hint in virt-manager?

Host and guest are both Xubuntu 22.04. The guest is UEFI without secure boot, and has VirtIO video with Spice+egl-headless displays.

Not seeking dynamic resizing of the guest screen with the viewing window, only looking to specify a different fixed resolution that the guest (mostly) automatically uses by default.

Bluetooth

$
0
0
hi.I have a problem with Bluetooth on my laptop. Ubuntu doesn't recognize it. I'm using it on a virtual machine. On Windows, Bluetooth works just fine.

Wireguard VPN - concept of virtual interfaces

$
0
0
I have a working remote access vpn set up for accessing a Nextcloud server at home. All hosts running Ubuntu server 22.04. So, I don’t have a question to fix anything but I am looking for a better understanding of how the vpn tunnel virtual interfaces really work, in particular related to their IP addresses.

I understand that all clients and the server each must have a tunnel interface IP address. These addresses do not seem to be related to any “real network”.

The Wireguard tunnel network must not conflict with a real network and does not need to be within a real network or subnet. This blows my mind :)

In my case, I have a real subnet at 10.8.10.0/24, and this subnet is where WG & NC live. Nothing else. Yet, my WG tunnel IPs are “made up”, all on a fake subnet, 10.0.8.0/32. I have no such subnet on any physical network anywhere. What is the point of fictitious IP addresses, unless it is a secret virtual network that only the WG hosts all understand. Weird, but I’m still learning..

libvirt + kvm + win10/11 guest, hibernation not working on Ryzen

$
0
0
Hi!
I have a "game server", AMD Ryzen 7 5800X on ROG STRIX X570-F GAMING mobo at home with couple of GPUs, running ubuntu 23.10 server. The plan was to run a bunch of Win virtual machines with GPU pass-through to play some games/other work, and then, after idling for a while, hibernate it to save current state, and release GPU for different user (there are more users then GPUs) this way, every home member has their own 'pc' with their system/config etc and also we can share resources a little.
And the main issue here is that, hibernation doesn't work with windows 10/11 on this setup. BUT it works when I run this exact VM on my laptop (11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz) without any isssue (with GPU pass OFF when testing this to exclude any pass through issues)

It looks like win VM is hibernating (CPU usage goes through the roof and I can see some data saved on HDD) but on power on, instead of booting from the hibernated image, it starts all over again. Windows logs are compleatly useless (or I don't know how to collect them properly, I'll try to ask for help on some win forums)

I need some guidance on how to even start debugging this

full config
Code:

<domain type="kvm">
  <name>Windows_10</name>
  <uuid>d7b0cb9c-8579-41d8-b5a7-ca566216adde</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://microsoft.com/win/10"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory unit="KiB">10076000</memory>
  <currentMemory unit="KiB">10076000</currentMemory>
  <vcpu placement="static">16</vcpu>
  <os firmware="efi">
    <type arch="x86_64" machine="pc-q35-8.0">hvm</type>
    <firmware>
      <feature enabled="yes" name="enrolled-keys"/>
      <feature enabled="yes" name="secure-boot"/>
    </firmware>
    <loader readonly="yes" secure="yes" type="pflash">/usr/share/OVMF/OVMF_CODE_4M.ms.fd</loader>
    <nvram template="/usr/share/OVMF/OVMF_VARS_4M.ms.fd">/var/lib/libvirt/qemu/nvram/Windows_10_VARS.fd</nvram>
    <boot dev="hd"/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv mode="custom">
      <relaxed state="on"/>
      <vapic state="on"/>
      <spinlocks state="on" retries="8191"/>
    </hyperv>
    <vmport state="off"/>
    <smm state="on"/>
  </features>
  <cpu mode="host-passthrough" check="none" migratable="on">
    <topology sockets="1" dies="1" cores="8" threads="2"/>
  </cpu>
  <clock offset="localtime">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
    <timer name="hypervclock" present="yes"/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled="yes"/>
    <suspend-to-disk enabled="yes"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <target dev="sda" bus="sata"/>
      <readonly/>
      <address type="drive" controller="0" bus="0" target="0" unit="0"/>
    </disk>
    <disk type="network" device="disk">
      <driver name="qemu" type="raw" cache="unsafe" discard="unmap"/>
      <source protocol="nbd" name="windows10" tls="no">
        <host name="nas_server" port="10809"/>
      </source>
      <target dev="vdb" bus="virtio"/>
      <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
    </disk>
    <controller type="usb" index="0" model="qemu-xhci" ports="15">
      <address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
    </controller>
    <controller type="pci" index="0" model="pcie-root"/>
    <controller type="pci" index="1" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="1" port="0x10"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0" multifunction="on"/>
    </controller>
    <controller type="pci" index="2" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="2" port="0x11"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x1"/>
    </controller>
    <controller type="pci" index="3" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="3" port="0x12"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x2"/>
    </controller>
    <controller type="pci" index="4" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="4" port="0x13"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x3"/>
    </controller>
    <controller type="pci" index="5" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="5" port="0x14"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x4"/>
    </controller>
    <controller type="pci" index="6" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="6" port="0x15"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x5"/>
    </controller>
    <controller type="pci" index="7" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="7" port="0x16"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x6"/>
    </controller>
    <controller type="pci" index="8" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="8" port="0x17"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x7"/>
    </controller>
    <controller type="pci" index="9" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="9" port="0x18"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0" multifunction="on"/>
    </controller>
    <controller type="pci" index="10" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="10" port="0x19"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x1"/>
    </controller>
    <controller type="pci" index="11" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="11" port="0x1a"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x2"/>
    </controller>
    <controller type="pci" index="12" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="12" port="0x1b"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x3"/>
    </controller>
    <controller type="pci" index="13" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="13" port="0x1c"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x4"/>
    </controller>
    <controller type="pci" index="14" model="pcie-root-port">
      <model name="pcie-root-port"/>
      <target chassis="14" port="0x1d"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x5"/>
    </controller>
    <controller type="sata" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x1f" function="0x2"/>
    </controller>
    <controller type="virtio-serial" index="0">
      <address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
    </controller>
    <interface type="direct">
      <mac address="52:54:00:b4:7e:26"/>
      <source dev="macvtap0" mode="bridge"/>
      <model type="virtio"/>
      <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
    </interface>
    <serial type="pty">
      <target type="isa-serial" port="0">
        <model name="isa-serial"/>
      </target>
    </serial>
    <console type="pty">
      <target type="serial" port="0"/>
    </console>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
      <address type="virtio-serial" controller="0" bus="0" port="1"/>
    </channel>
    <input type="tablet" bus="usb">
      <address type="usb" bus="0" port="1"/>
    </input>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
    <tpm model="tpm-crb">
      <backend type="emulator" version="2.0"/>
    </tpm>
    <graphics type="spice" autoport="yes">
      <listen type="address"/>
    </graphics>
    <sound model="ich9">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
    </sound>
    <audio id="1" type="spice"/>
    <video>
      <model type="none"/>
    </video>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x09" slot="0x00" function="0x1"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x09" slot="0x00" function="0x2"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
    </hostdev>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x09" slot="0x00" function="0x3"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
    </hostdev>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="2"/>
    </redirdev>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="3"/>
    </redirdev>
    <watchdog model="itco" action="reset"/>
    <memballoon model="virtio">
      <address type="pci" domain="0x0000" bus="0x05" slot="0x00" function="0x0"/>
    </memballoon>
  </devices>
</domain>

unable to load drivers for Intel CoffeeLake-S GT2 [UHD Graphics 630] [8086:3e92]

$
0
0
I am using proxmox and I can confirm that the iGPU is in it's own IOMMU group "alone".
I have an ubuntu minimal cloud image:
Code:

cat /etc/os-release && uname -r

PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
5.15.0-1051-kvm

I can see the iGPU within the Ubuntu VM:
Code:

GPU_List=$(sudo lspci | awk '/VGA|Display|3D/ {print $1}');for GPU_ID in ${GPU_List[@]};do sudo lspci -s $GPU_ID -vnn; done

01:00.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] [8086:3e92] (prog-if 00 [VGA controller])
        Subsystem: Hewlett-Packard Company CometLake-S GT2 [UHD Graphics 630] [103c:8591]
        Physical Slot: 0
        Flags: fast devsel, IRQ 10
        Memory at fb000000 (64-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 5000 [size=64]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [40] Vendor Specific Information: Len=0c <?>
        Capabilities: [70] Express Endpoint, MSI 00
        Capabilities: [ac] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 2

but there are no drivers loaded within the VM??
I have been trying to follow this post but I can't see any drivers being loaded at all.

here is some more info:

Code:

inxi -G &&  sudo dmesg | grep -i i915Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: N/A
  Display: server: No display server data found. Headless machine? tty: 178x51
  Message: GL data unavailable in console. Try -G --display

Code:

sudo lspci -nnv | grep -i -e 'Intel' | grep -A 11 -e 'VGA' | grep -i -e 'VGA\|Kernel driver\|Kernel modules'
01:00.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] [8086:3e92] (prog-if 00 [VGA controller])

Any pointers/help would be highly appreciated by this first timer :)

Issues using tightvncserver in

$
0
0
I'm running Ubuntu from os boxes in a virtual machine and can't figure out which IP address to use. It's all on the same internal network and theirs a VPN. Just trying to get a virtual machine for miscellaneous stuff to work remotely and team viewer thinks Im doing something commercial so im trying to get away from it. I tried the ipv4 address that's like 192.168.56.xxxx something or other. I enabled some other network cards to see if it helps but it isn't working. Does anyone have a tutorial or something?
Viewing all 4211 articles
Browse latest View live


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