Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
5320
views
virsh pool storage basics
How or where were these pools created? Where are configuration files? $ virsh pool-list --all Name State Autostart ------------------------------------------- default active yes Downloads active yes $ virsh pool-info Downloads Name: Downloads UUID: fdbe7407-67c4-405d-8e46-9c2695a8b353 State: running...
How or where were these pools created? Where are configuration files?
$ virsh pool-list --all
Name State Autostart
-------------------------------------------
default active yes
Downloads active yes
$ virsh pool-info Downloads
Name: Downloads
UUID: fdbe7407-67c4-405d-8e46-9c2695a8b353
State: running
Persistent: yes
Autostart: yes
Capacity: 219.88 GiB
Allocation: 34.87 GiB
Available: 185.01 GiB
$ virsh pool-info default
Name: default
UUID: cb72b02e-b436-4ec9-9460-d297744c4c69
State: running
Persistent: yes
Autostart: yes
Capacity: 219.88 GiB
Allocation: 34.95 GiB
Available: 184.93 GiB
I believe that the pools were created by the
virt-manager
GUI.
Is there free space on default
? I think that the Downloads
pool is probably superfluous.
Thufir
(1970 rep)
Nov 21, 2017, 10:14 AM
• Last activity: Jun 26, 2025, 11:10 AM
1
votes
0
answers
95
views
Backup of KVM/virsh VM
I want to create backups of my running KVM VMs using virsh (qcow2). The VMs don't have snapshots, but in order to create a clean backup I want to create a snapshot, back up the backing file then discard (merge back to running file) the snapshot. Most importantly, I need to be able to restore these,...
I want to create backups of my running KVM VMs using virsh (qcow2). The VMs don't have snapshots, but in order to create a clean backup I want to create a snapshot, back up the backing file then discard (merge back to running file) the snapshot.
Most importantly, I need to be able to restore these, too.
What I *don't* want is to suspend or stop the VM at any point during backup except for the instant during the creation and removal of the snapshot.
So far I have the following.
### BACKUP
# virsh snapshot-create-as VM_NAME SNAPSHOT_NAME --disk-only --quiesce
# virsh dumpxml VM_NAME > /VM_NAME.xml
// do backup like rsync, ftp, cp, etc. of the VM_NAME.img and VM_NAME.xml
# virsh snapshot-delete VM_NAME SNAPSHOT_NAME
### RESTORE
// assuming the VM is shut down or deleted, copy VM_NAME.img to the desired folder
// ensure xml file has correct path to VM_NAME.img
# virsh define /VM_NAME.xml
Is this about right?
twkonefal
(111 rep)
Feb 16, 2025, 11:47 PM
0
votes
0
answers
54
views
How to migrate snapshots QEMU KVM?
```shell $ sudo virsh migrate --domain domname --desturi qemu+ssh://user@ip/system --migrateuri tcp://ip --live --auto-converge --verbose error: Requested operation is not valid: cannot migrate domain with 1 snapshots ``` How can I make this work?
$ sudo virsh migrate --domain domname --desturi qemu+ssh://user@ip/system --migrateuri tcp://ip --live --auto-converge --verbose
error: Requested operation is not valid: cannot migrate domain with 1 snapshots
How can I make this work?
user1420275
(1 rep)
Jan 18, 2025, 08:39 AM
• Last activity: Jan 19, 2025, 03:57 PM
6
votes
3
answers
24379
views
how can I create a KVM guest 100% as a non root user?
In a debian host with many users, I want to allow different users to create their own VMs, completely independent of each other. The closest relevant (non-root) way I have seen in guides is by connecting to the `qemu:///system` hypervisor . This is the system hypervisor which is shared among all use...
In a debian host with many users, I want to allow different users to create their own VMs, completely independent of each other.
The closest relevant (non-root) way I have seen in guides is by connecting to the
qemu:///system
hypervisor . This is the system hypervisor which is shared among all users. What is more the disk image file will be owned by root (or kvm) user, meaning that the whole filesystem path to the location of the disk image file must be world readable.
For the above and other reasons I want to run my VMs purely and completely as non root user. That is as qemu:///session
. So the main question is how do I do that? Are there any guides I could use?
I went as far as trying to create new virtual bridge iface, but even though I am member of the netdev group I get "permission denied" errors when I do the following:
virsh -c qemu:///session net-create /etc/libvirt/qemu/networks/mynet.xml
note than mynet.xml is just like default network but at a different subnet.
nass
(1508 rep)
Oct 3, 2014, 02:15 PM
• Last activity: Nov 7, 2024, 03:31 PM
1
votes
0
answers
122
views
connect to console only of VM created by virt-manager?
I have perfectly working ubuntu 24.04 VM running. My host machine is ubuntu 24.04 as well. I made my vm using `virt-manager`, which launches a full desktop GUI. But I want to connect to it's console only without the GUI. I found out you can connect with using `virsh`. I have added `console` with `ad...
I have perfectly working ubuntu 24.04 VM running. My host machine is ubuntu 24.04 as well. I made my vm using
virt-manager
, which launches a full desktop GUI.
But I want to connect to it's console only without the GUI. I found out you can connect with using virsh
. I have added console
with add hardware
in virt-manager machine details
.
When I run virsh list --all
I can see my VM. Afterwards I virsh start ubuntu24.04
and virsh console 24.04
.
This brings up the following menu:
Connected to domain 'ubuntu24.04'
Escape character is ^] (Ctrl + ])
I tried pressing enter
and writing my crypt0 password and press enter
. And none seemed to work.
Anyone knows how to get in the console from my terminal?
stackcen
(11 rep)
May 11, 2024, 07:47 AM
• Last activity: May 11, 2024, 07:47 AM
0
votes
1
answers
78
views
Edit value of "domain" tag seen in XML output of "virsh domcapabilities"
How do I change the `domain` parameter displayed by `virsh domcapabilities` from `qemu` to `kvm`? /usr/bin/qemu-system-x86_64 qemu I want to change the system so that `virsh domcapabilities` outputs `kvm` in the future.
How do I change the
domain
parameter displayed by virsh domcapabilities
from qemu
to kvm
?
/usr/bin/qemu-system-x86_64
qemu
I want to change the system
so that virsh domcapabilities
outputs kvm
in the future.
viator
(77 rep)
Apr 20, 2024, 05:47 PM
• Last activity: Apr 21, 2024, 01:56 PM
8
votes
5
answers
27063
views
How to change default text editor for virsh edit?
I recently installed virt-manager on Arch Linux, and unlike under Ubuntu, I was not prompted to choose a text editor on the first launch of virsh-edit. Instead, the XML file was opened in vi (or vim, not sure). [From this thread in the RedHat archives][1], I thought that if I just added to `~/.bashr...
I recently installed virt-manager on Arch Linux, and unlike under Ubuntu, I was not prompted to choose a text editor on the first launch of virsh-edit. Instead, the XML file was opened in vi (or vim, not sure).
From this thread in the RedHat archives , I thought that if I just added to
~/.bashrc
:
export EDITOR=/usr/bin/nano
that would solve the problem. **But setting EDITOR environment variable didn't work.**
Also, launching it with =geany sudo virsh edit myWINVM
gave the same result, as did trying to use a different editor: =geany sudo virsh edit myWINVM
as described here
and I see that the variable has in fact been set:
[~]$ printenv
SHELL=/bin/bash
SESSION_MANAGER=local/virtland:@/tmp/.ICE-unix/5451,unix/virtland:/tmp/.ICE-unix/5451
WINDOWID=27262979
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg
XDG_MENU_PREFIX=xfce-
SSH_AUTH_SOCK=/tmp/ssh-j36TZui4fOt5/agent.5457
DESKTOP_SESSION=Xfce Session
SSH_AGENT_PID=5458
EDITOR=/usr/bin/nano
...
However edit MYVM
still opens the XML in vi.
Is there something different I need to do in Arch? Has the method of changing this setting been changed in recent updates of virsh?
Stonecraft
(869 rep)
Feb 24, 2019, 12:58 PM
• Last activity: Apr 4, 2024, 03:46 PM
1
votes
0
answers
181
views
Running VMs and virsh command from qemu build from source
I am trying to build QEMU from source using the instructions given [here](https://wiki.qemu.org/Hosts/Linux). I am trying to implement a research paper which adds features to the migration mechanism of QEMU and so I need a custom build(from source) of QEMU. I need cli commands to be able to do every...
I am trying to build QEMU from source using the instructions given [here](https://wiki.qemu.org/Hosts/Linux) . I am trying to implement a research paper which adds features to the migration mechanism of QEMU and so I need a custom build(from source) of QEMU. I need cli commands to be able to do everything because I am automating the entire build and running of Vm and migration using Ansible. I am able to install the dependencies and reach to the screen where I get the option to install the OS in the qcow2 image that I create using the following 2 commands.
-
cd qemu/build
- ./qemu-img create -f qcow2 test.qcow2 16G
- x86_64-softmmu/qemu-system-x86_64 -m 1024 -enable-kvm -drive if=virtio,file=test.qcow2,cache=none -cdrom ubuntu-22.04.3-live-server-amd64.iso
And I get this screen which allows me to install OS.
[install window](https://i.sstatic.net/S5rUv.png)
However once installed, I am not able to figure out how to run the installed OS from the qcow2 image?
Moreover I want to run migration commands to migrate VM from one host to other. Using the official QEMU(downloaded from software center) I installed virt-manager
and libvirt
and run the migration using
- virsh migrate --live migrate-server --persistent --verbose --copy-storage-all --desturi qemu+ssh://clarkk@vm02/system
Again I want to be able to do all this using the command line on custom build of QEMU (building QEMU from source code).
Thanks
I have tried to search online for results like [this](https://unix.stackexchange.com/questions/638844/how-to-start-qemu-vm-from-command-line) , but they are not for custom build of QEMU, because on custom build you dont have access to virt-manager and libvirt.
Documentation aren't very beginner friendly either, or I have not been able to look at the right place.
Amit Kumar
(11 rep)
Dec 5, 2023, 08:09 AM
3
votes
1
answers
1733
views
libvirt-bin error on a VM when I try to list VM
I'm using Virtualbox 4.3.18 on my Arch Linux Host machine and libvirt-bin 1.2.9 on my Ubuntu Server Cloud guest machine. Everytime I try to follow [this tutorial](http://maas.ubuntu.com/docs/nodes.html#virtual-machine-nodes) I receive the following error when I run virsh: Command: virsh -c vbox+ssh:...
I'm using Virtualbox 4.3.18 on my Arch Linux Host machine and libvirt-bin 1.2.9 on my Ubuntu Server Cloud guest machine. Everytime I try to follow [this tutorial](http://maas.ubuntu.com/docs/nodes.html#virtual-machine-nodes) I receive the following error when I run virsh:
Command:
virsh -c vbox+ssh://leandro@10.0.3.15/system list --all
Error:
error: failed to connect to the hypervisor
error: internal error: unable to initialize VirtualBox driver API
Someone know how to fix this?
Leandro
(131 rep)
Oct 17, 2014, 07:52 PM
• Last activity: Oct 23, 2023, 02:01 AM
4
votes
2
answers
27070
views
Where does KVM hypervisor store VM files?
For a guest machine how can I know where the files created in vm (not the VM config files but actual files which I create while using VM) are stored on my host machine? To which directory of my host the root directory of VM is mapped?
For a guest machine how can I know where the files created in vm (not the VM config files but actual files which I create while using VM) are stored on my host machine? To which directory of my host the root directory of VM is mapped?
karan ratnaparkhi
(111 rep)
Nov 8, 2015, 09:07 AM
• Last activity: Sep 10, 2023, 01:45 PM
1
votes
1
answers
211
views
Limited permissions in tmux session
I am using a tmux session to run a script that runs some Python code (which uses a virtual environment stored at /opts/...; Python binaries have been copied not linked) that creates virtual machines using libvirt. When I run `virsh list --all` inside of this tmux session when the script has finished...
I am using a tmux session to run a script that runs some Python code (which uses a virtual environment stored at /opts/...; Python binaries have been copied not linked) that creates virtual machines using libvirt. When I run
virsh list --all
inside of this tmux session when the script has finished, the machines do not show up. When I run sudo virsh list --all
they show up. When I leave the session virsh list --all
shows me the VMs as expected. I get them listed as expected as well in a subsequently created new tmux session. What is happening and how can I fix this?
If I run the script outside tmux, then listing the virtual machines works with virsh list --all
.
Eric M.
(51 rep)
Oct 19, 2022, 12:52 PM
• Last activity: Sep 8, 2023, 07:23 PM
0
votes
1
answers
1972
views
qemu-system-x86_64 not found when moving VMs between computers
I am moving GNOME Boxes virtual machines from Fedora to Guix following [the guide on Fedora wiki](https://fedoraproject.org/wiki/Move_boxes_virtual_machines). On the Fedora workstation: ``` $ virsh list --all Id Name State ------------------------------- - win10 shut off $ cd ~ $ virsh dumpxml win10...
I am moving GNOME Boxes virtual machines from Fedora to Guix following [the guide on Fedora wiki](https://fedoraproject.org/wiki/Move_boxes_virtual_machines) .
On the Fedora workstation:
$ virsh list --all
Id Name State
-------------------------------
- win10 shut off
$ cd ~
$ virsh dumpxml win10 >win10.xml
$ mv .local/share/gnome-boxes/images/win10 win10
Then, I moved win10
and win10.xml
to the home directory at the new machine. On that Guix system:
$ guix install gnome-boxes
$ cd ~
$ mv win10 .local/share/gnome-boxes/images/win10
$ guix install libvirt
$ virsh create win10.xml
error: Failed to create domain from win10.xml
error: Cannot check QEMU binary /usr/bin/qemu-system-x86_64: No such file or directory
qemu-system-x84_64
is located in a different place:
$ type qemu-system-x86_64
qemu-system-x86_64 is /run/current-system/profile/bin/qemu-system-x86_64
So, how do I complete importing the virtual machine?
Roman Riabenko
(2436 rep)
Jul 14, 2023, 09:10 PM
1
votes
0
answers
1118
views
keyboard/mouse not working in VMM thru VNC
i remotely connect to my Virtual Machine Manager thru VNC client (MobaXTerm) to TightVNC (on the Debian host) on Win10. however, when i spin up a vm, the guest does not respond to any keyboard or mouse input. only the direcly-connected-to-server USB keyboard can be redirected. in the machine config,...
i remotely connect to my Virtual Machine Manager thru VNC client (MobaXTerm) to TightVNC (on the Debian host) on Win10. however, when i spin up a vm, the guest does not respond to any keyboard or mouse input. only the direcly-connected-to-server USB keyboard can be redirected. in the machine config, i've added the Avocent USB Composite Device to USB Hardware, i've tried adding additional USB redirects, but to no avail.
i've seen that there are several posts on similar issues, none of which provided anything useful; probably because they are working directly on the machine. i have no such luxury down the line. i need to be able to manage this from my Win10 machine remotely, thus the VNC wrinkle... which, to my mind, shouldn't be much of a wrinkle at all.
so flow-wise, it looks like this:
+-------+ +---------------------------+
| | | +----+ |
| win10 | --(VNC)--> | VMhost (VMM) --> | VM | |
| | | Debian11 +----+ |
+-------+ +---------------------------+
so how do i get my inputs to flow down to the VM at the end? i apologize if i am missing something simple, because this seems a pretty simple setup... :P
EDIT: i read a couple posts indicating that the native TightVNC should be replaced with TigerVNC due to the way QEMU remaps key inputs...? is this valid? i'd hate to tear it out only to introduce more issues.
WhiteRau
(255 rep)
Jun 8, 2023, 07:10 PM
• Last activity: Jun 8, 2023, 07:56 PM
0
votes
0
answers
83
views
`virsh start` crashes CentOS 7 host
This just began yesterday after the host system was shutdown and booted back up. Upon running `virsh start [guest-name]`, it immediately dumps this output and forcibly reboots the host: [![crash screen 1][1]][1] [![crash screen 2][2]][2] [1]: https://i.sstatic.net/lhpUO.jpg [2]: https://i.sstatic.ne...
This just began yesterday after the host system was shutdown and booted back up.
Upon running
The only thing that sticks out to me there is the
virsh start [guest-name]
, it immediately dumps this output and forcibly reboots the host:


Firmware bug
line near the top of the second picture.
I have run yum update
and updated the BIOS, same result. None of the guest configurations have changed. As a test, I installed Rocky 8 on spare drive, installed libvirt, installed a guest OS and it ran perfectly fine, so I don't think it's hardware.
I'd rather not do a whole reinstall and reconfiguration. How I trace and fix this?
autobottodoggo
(131 rep)
Mar 29, 2023, 08:40 PM
4
votes
1
answers
741
views
Why don't I see any KVM domains when I run virsh through ssh?
I'm trying to automate checking several nodes running KVM domains. I was simply using ssh to run the commands directly instead of doing a full login: ssh user@kvmhost "virsh list --all" But it was simply producing output like this: Id Name State -------------------- When I login interactively I can...
I'm trying to automate checking several nodes running KVM domains. I was simply using ssh to run the commands directly instead of doing a full login:
ssh user@kvmhost "virsh list --all"
But it was simply producing output like this:
Id Name State
--------------------
When I login interactively I can run
virsh list --all
and it shows me the domains. So what am I doing wrong?
deltaray
(1477 rep)
Jan 18, 2023, 04:31 PM
1
votes
1
answers
3848
views
How to fix (several) VM start-up issues in gnome-boxes?
*in short:* **My virtual machine named CONAN01 is not starting up in gnome-boxes, I receive/see different errors and do not know what the real issues behind them are:** **Error 1:** When starting gnome-boxes from the Gnome desktop environment and clicking on my virtual machine CONAN01 to start it up...
*in short:* **My virtual machine named CONAN01 is not starting up in gnome-boxes, I receive/see different errors and do not know what the real issues behind them are:**
**Error 1:**
When starting gnome-boxes from the Gnome desktop environment and clicking on my virtual machine CONAN01 to start it up, I receive a pop-up message with the option to open the error log and in this error log I can see the last lines, which state:
2022-06-15 09:39:22.707+0000: Domain id=1 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2022-06-15T09:39:22.800582Z qemu-system-x86_64: warning: This family of AMD CPU doesn't support hyperthreading(2)
Please configure -smp options properly or try enabling topoext feature.
2022-06-15T10:30:56.757942Z qemu-system-x86_64: terminating on signal 15 from pid 3544 (/lib/systemd/systemd)
**Error 2:**
When using the terminal to start gnome-boxes and then using the mouse to click and run my virtual machine CONAN01, I receive following error:
> gnome-boxes
error output at gnome-boxes startup:
(gnome-boxes:709111): Gtk-WARNING **: 22:02:27.216: GtkFlowBox with a model will ignore sort and filter functions
(gnome-boxes:709111): Gtk-WARNING **: 22:02:27.217: GtkListBox with a model will ignore sort and filter functions
(gnome-boxes:709111): GLib-GObject-WARNING **: 22:02:28.067: ../../../gobject/gsignal.c:2715: handler '2888' of instance '0x562fb55b44e0' is not blocked
error output at virtual machine CONAN01 startup:
(gnome-boxes:709111): Boxes-WARNING **: 22:02:32.045: machine.vala:605: Failed to start CONAN01: Unable to start domain: internal error: /usr/lib/qemu/qemu-bridge-helper --use-vnet --br=virbr0 --fd=31: failed to communicate with bridge helper: Transport endpoint is not connected
stderr=failed to create tun device: Operation not permitted
**Error 3:**
When executing the gnome-boxes – CLI checks by performing the necessary command, I receive following information:
> gnome-boxes --checks
information output:
(gnome-boxes:717997): Boxes-WARNING **: 22:50:30.599: util-app.vala:376: Failed to execute child process ?restorecon? (No such file or directory)
• The CPU is capable of virtualization: yes
• The KVM module is loaded: yes
• Libvirt KVM guest available: yes
• Boxes storage pool available: no
/root/.local/share/gnome-boxes/images is known to libvirt as GNOME Boxes’s storage pool but this directory does not exist
• The SELinux context is default: no
Report bugs to .
Boxes home page: .
Despite changing the location of the storage pool by using the necessary commands, but the output showing the XML – configuration has not changed, virsh and gnome-boxes still think the old location is valid, my intend was to change “/home/myusername/.local/share/gnome-boxes/images”:
> virsh pool-info gnome-boxes
Name: gnome-boxes
UUID: edb0bf37-df0f-4295-a3cf-0ced96970de0
State: running
Persistent: yes
Autostart: yes
Capacity: 907,44 GiB
Allocation: 531,49 GiB
Available: 375,95 GiB
> virsh pool-dumpxml gnome-boxes
gnome-boxes
edb0bf37-df0f-4295-a3cf-0ced96970de0
974357393408
570679726080
403677667328
/root/.local/share/gnome-boxes/images
0744
0
0
> sudo virsh pool-edit gnome-boxes
> virsh pool-dumpxml gnome-boxes
gnome-boxes
edb0bf37-df0f-4295-a3cf-0ced96970de0
974357393408
570679726080
403677667328
/root/.local/share/gnome-boxes/images
0744
0
0
Erdinc Ay
(1020 rep)
Dec 25, 2022, 10:32 PM
• Last activity: Dec 26, 2022, 11:32 PM
12
votes
2
answers
15599
views
What commands in virsh corresponds to "Force Off" button in virt-manager?
I'm trying to find the corresponding command to the buttons in virt-manager, I read about `virsh help domain` and I found start, shutdown and reset etc. But the one for `Force Off` is missing. Anyone know what that is?
I'm trying to find the corresponding command to the buttons in virt-manager,
I read about
virsh help domain
and I found start, shutdown and reset etc. But the one for Force Off
is missing.
Anyone know what that is?
daisy
(55777 rep)
Aug 20, 2014, 01:36 AM
• Last activity: Nov 2, 2022, 01:44 AM
1
votes
0
answers
56
views
Re-image disks of an existing vm
I am using the libvirt utility to manage vms and I had a specific requirement to restart a vm from scratch i.e. like a fresh bootup, wipe disks clean and restart. Is that possible with any of the libvirt/virsh commands? Reset/reboot commands re-init state but retain logs.
I am using the libvirt utility to manage vms and I had a specific requirement to restart a vm from scratch i.e. like a fresh bootup, wipe disks clean and restart.
Is that possible with any of the libvirt/virsh commands?
Reset/reboot commands re-init state but retain logs.
LinuxUser
(11 rep)
Oct 21, 2022, 06:36 AM
1
votes
2
answers
1708
views
Libvirt Ubuntu VM: files created on guest in shared folder given root-only access on host
I have created a Ubuntu VM on a server running Ubuntu Server 16.04.5 LTS using the following command: sudo virt-install \ --name TEST \ --memory 2048 \ --vcpus 2 \ --location 'http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/' \ --os-variant ubuntu16.04 \ --disk path=/pools/pool0/i...
I have created a Ubuntu VM on a server running Ubuntu Server 16.04.5 LTS using the following command:
sudo virt-install \
--name TEST \
--memory 2048 \
--vcpus 2 \
--location 'http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/ ' \
--os-variant ubuntu16.04 \
--disk path=/pools/pool0/images/vm/test,size=150,bus=virtio,sparse=no,format=qcow2 \
--filesystem type=mount,source=/pools/pool0/volumes/shared,target=shared,mode=mapped \
--network network=vms \
--graphics none \
--virt-type kvm \
--hvm \
--console pty,target_type=serial \
--extra-args 'console=ttyS0,115200n8 serial'
Note that I have created a shared folder, called
shared
with mapped access in order to allow reading and writing on the guest.
I then start the VM with this command:
virsh start TEST --console
Inside the guest, I have edited /etc/fstab
to auto-mount the shared folder with this line, where UID 1000 is my user and GID 1000 is the associated group which contains no other members:
shared /mnt 9p trans=virtio,version=9p2000.L,rw,uid=1000,gid=1000 0 0
In the /mnt
directory on the guest, running ls -ln
gives the following output:
$ ls -ln /mnt
total 42
drwxrwxr-x 8 1000 1000 8 Jul 28 23:52 Backups
drwxrwxr-x 6 1000 1000 6 Dec 28 00:15 Media
drwxrwxr-x 6 1000 1000 67 Mar 31 2018 Misc
drwxrwxr-x 2 1000 1000 4 Mar 31 2018 Recipes
I get the same output when running ls -ln
on the host in the /pools/pool0/volumes/shared
directory:
$ ls -ln /pools/pool0/volumes/shared
total 42
drwxrwxr-x 8 1000 1000 8 Jul 28 23:52 Backups
drwxrwxr-x 6 1000 1000 6 Dec 28 00:15 Media
drwxrwxr-x 6 1000 1000 67 Mar 31 2018 Misc
drwxrwxr-x 2 1000 1000 4 Mar 31 2018 Recipes
In the guest, I can create and modify files and folders as myself, an unprivileged user:
$ mkdir /mnt/Media/test-dir
$ touch /mnt/Media/test-file
$ ls -ln /mnt/Media
total 75
drwxrwxr-x 199 1000 1000 199 Dec 28 22:07 Movies
drwxrwxr-x 152 1000 1000 153 Dec 25 16:26 Music
drwxrwxr-x 75 1000 1000 75 Jul 16 21:02 Photos
drwxrwxr-x 2 1000 1000 2 Dec 29 20:30 test-dir
-rw-rw-r-- 1 1000 1000 0 Dec 29 20:31 test-file
drwxrwxr-x 15 1000 1000 15 Dec 18 15:40 TV Shows
However, on the host OS, these files and folders have been given root only access:
$ ls -ln /pools/pool0/volumes/shared/Media
total 75
drwxrwxr-x 199 1000 1000 199 Dec 28 22:07 Movies
drwxrwxr-x 152 1000 1000 153 Dec 25 16:26 Music
drwxrwxr-x 75 1000 1000 75 Jul 16 21:02 Photos
drwx------ 2 0 0 2 Dec 29 20:30 test-dir
-rw------- 1 0 0 0 Dec 29 20:31 test-file
drwxrwxr-x 15 1000 1000 15 Dec 18 15:40 TV Shows
I run automated scripts on my server, and for these to work I need these folders and directories to be created with UID 1000
, GID 1000
, permissions of rwxrwxr-x
(775) for directories, and permissions of rw-rw-r--
(664) for files. I do not want to have to manually run chmod
and chown
with sudo
each time I create a new file / directory.
I need to fix this issue, preferably without having to re-install the VM from scratch.
user3470185
(119 rep)
Dec 29, 2018, 08:53 PM
• Last activity: Apr 20, 2022, 07:07 AM
1
votes
1
answers
2188
views
debian virt-install with import not working No 'bridge' attribute specified
new to Debian from Centos I'm trying to import an image Does anyone have any idea what I would be doing wrong? Debian VERSION="10 (buster)" packages installed: `apt-get install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system` ip a: ``` 1: lo: mtu 65536 qdisc noqueue state U...
new to Debian from Centos
I'm trying to import an image
Does anyone have any idea what I would be doing wrong?
Debian VERSION="10 (buster)"
packages installed:
apt-get install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system
ip a:
1: lo: 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: eno3: mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 24:6e:96:44:a0:1c brd ff:ff:ff:ff:ff:ff
inet x.x.x.x/25 brd 148.59.149.127 scope global eno3
valid_lft forever preferred_lft forever
6: virbr0: mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:59:ec:e1 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: virbr0-nic: mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:59:ec:e1 brd ff:ff:ff:ff:ff:ff
virsh net-list
Name State Autostart Persistent
--------------------------------------------
default active yes yes
When I try doing an import from a working image
virt-install --network default --name jitsi --os-type=linux --os-variant=ubuntu19.04 --ram=2024 --vcpus=2 --disk /var/lib/libvirt/images/ubuntu19.img,device=disk,bus=virtio -w model=virtio --import
error:
> Starting install...
ERROR internal error: No 'bridge' attribute specified with
Domain installation does not appear to have been successful.
I've tried adding instead
--network bridge=virbr0
gstlouis
(85 rep)
Dec 20, 2021, 06:01 PM
• Last activity: Jan 11, 2022, 02:55 AM
Showing page 1 of 20 total questions