Linux Virt-Customize Tutorial

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-virt-customize-tutorial/
PINTEREST
PINTEREST
INSTAGRAM

I have given a time slot from my last article. Now I am back and resume from where we are. I am gonna show you today a pratical and usefull tool for managing linux virtual machines and disks. Whit virutliaztion people start to use a lot of vms in their personal or corporate pc’s. But managing them is difficult. I faced with these difficulties too. So I search for a tool helps me espacially in updates. I came with virt-customize which is a tool in libguestfs-tools package. Here we start.

Update existing disk image Virt-customize opens the disk and then look for last update seed and then try to run update commands which are used this distro. Windows image are not supported yet but you can use run command to update windows images. Here you can you URI for remote disk images. The disk format is automatically detected.

To attach a iso file use attach option. If you want to attach them to specific directories run mount scripts which we will look later

To connect and hypervisor and run virt-customize there use -c option with hypervisor uri which is here local libvirtd and give domain name or uuid with -d option.

To run update in test mode or readonly mode use -n or –dry-run option

LEARN MORE  Killing Linux Processes With killall Command

You can specify memory usege with -m or –memory option. Default memory size can be seen with guesfish get-memsize

Network connection can be controlled with –network or –no-network options.

To see verbose output which is very detailed use –verbose or -v

To delete files and folders on the disk image use –delete customization options

LEARN MORE  How To List MySQL/MariaDB Databases

You can set hostname with –hostname option

To install packages use –install option use , to specify more than one package

To create directories on file system use –mkdir option. There is no border it acts like root you can create whatever you want

Up to now we call options related to standart linux commands also we can run commands inside disk image with –run-command option.

LEARN MORE  How To Zip, Unzip Files In Linux?

If we want to run script we can use –run command with script path

To upload files to the disk image use –upload option

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/linux-virt-customize-tutorial/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)