Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2018-06-02 11:54:50 -0600

hhlp gravatar image

Move gnome-boxes and libvirt default directory to another drive

for space requerimient in my home I need to move this two directory to another drive :

/home/hhlp/.local/share/gnome-boxes
/home/hhlp/.local/share/libvirt

I would like to move to another drive :

sdb               8:16   0 931,5G  0 disk 
└─sdb1            8:17   0 931,5G  0 part /run/media/hhlp/SAMSUNG_1TB

/dev/sdb1             2048 1953521663 1953519616 931,5G  7 HPFS/NTFS/exFAT

How I can apply that...

Regards.,

NOTE : I follow this step :

If you would like to store your Gnome Boxes disks (which can get large) elsewhere, such as on a storage hard drive, you can use a symbolic link to move its location. Create a symbolic link from

~/.local/share/gnome-boxes

to your desired location gnome-boxes and libvirt directory :

rm -rf ~/.local/share/gnome-boxes or libvirt
ln -s /path/to/drive ~/.local/share/gnome-boxes or libvirt

that is how the permisions look like :

ls -lZa /home/hhlp/.local/share/gnome-boxes  
lrwxrwxrwx. 1 hhlp hhlp unconfined_u:object_r:data_home_t:s0 46 jun  2 16:42 /home/hhlp/.local/share/gnome-boxes -> /run/media/hhlp/SAMSUNG_1TB/gnome-boxes/images

ls -lZa /home/hhlp/.local/share/libvirt               
lrwxrwxrwx. 1 hhlp hhlp unconfined_u:object_r:data_home_t:s0 36 jun  2 18:37 /home/hhlp/.local/share/libvirt -> /run/media/hhlp/SAMSUNG_1TB/libvirt/

What I get in gnome-boxes is :

start CentOS-7-x86_64-LiveGNOME-1804: Unable to start domain: internal error: process exited while connecting to monitor: 2018-06-02T16:48:53.008862Z qemu-system-x86_64: -drive file=/home/hhlp/.local/share/gnome-boxes/images/boxes-unknown,format=qcow2,if=none,id=drive-ide0-0-0,cache=writeback: Could not open '/home/hhlp/.local/share/gnome-boxes/images/boxes-unknown': **Permission denied**

Move gnome-boxes and libvirt default directory to another drive

for space requerimient in my home I need to move this two directory to another drive :

/home/hhlp/.local/share/gnome-boxes
/home/hhlp/.local/share/libvirt

I would like to move to another drive :

sdb               8:16   0 931,5G  0 disk 
└─sdb1            8:17   0 931,5G  0 part /run/media/hhlp/SAMSUNG_1TB

/dev/sdb1             2048 1953521663 1953519616 931,5G  7 HPFS/NTFS/exFAT

How I can apply that...

Regards.,

NOTE : I follow this step :

If you would like to store your Gnome Boxes disks (which can get large) elsewhere, such as on a storage hard drive, you can use a symbolic link to move its location. Create a symbolic link from

~/.local/share/gnome-boxes

to your desired location gnome-boxes and libvirt directory :

rm -rf ~/.local/share/gnome-boxes or libvirt
ln -s /path/to/drive ~/.local/share/gnome-boxes or libvirt

that is how the permisions look like :

ls -lZa /home/hhlp/.local/share/gnome-boxes  
lrwxrwxrwx. 1 hhlp hhlp unconfined_u:object_r:data_home_t:s0 46 jun  2 16:42 /home/hhlp/.local/share/gnome-boxes -> /run/media/hhlp/SAMSUNG_1TB/gnome-boxes/images

ls -lZa /home/hhlp/.local/share/libvirt               
lrwxrwxrwx. 1 hhlp hhlp unconfined_u:object_r:data_home_t:s0 36 jun  2 18:37 /home/hhlp/.local/share/libvirt -> /run/media/hhlp/SAMSUNG_1TB/libvirt/

What I get in gnome-boxes is :

start CentOS-7-x86_64-LiveGNOME-1804: Unable to start domain: internal error: process exited while connecting to monitor: 2018-06-02T16:48:53.008862Z qemu-system-x86_64: -drive file=/home/hhlp/.local/share/gnome-boxes/images/boxes-unknown,format=qcow2,if=none,id=drive-ide0-0-0,cache=writeback: Could not open '/home/hhlp/.local/share/gnome-boxes/images/boxes-unknown': **Permission denied**

NOTE : this idea get to my mind when i read this article in feodra magazine -> getting-started-with-virtualization-in-gnome-boxes