Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
virt-install
virt-install is part of the virtinst package. It can help installing classic ISO based systems and provides a CLI options for the most common options needed to do so. To install it, from a terminal prompt enter: sudo apt install virtinst There are several options available when using virt-install. For example: v i r t − i n s t a l l −n web_devel −r 8192 \ −−d i s k path=/home/ doug /vm/ web_devel . img , bus=v i r t i o , s i z e =50 \ −c f o c a l −desktop−amd64 . i s o \ −−network network=d e f a u l t , model=v i r t i o \ −−v i d e o=vmvga −−g r a p h i c s vnc , l i s t e n = 0 . 0 . 0 . 0 −−n o a u t o c o n s o l e −v −−vcpus=4 There are much more arguments that can be found in the man page, explaining those of the example above one by one: * -n web_devel the name of the new virtual machine will be web_devel in this ex- ample. * -r 8192 specifies the amount of memory the virtual machine will use in megabytes. * –disk path=/home/doug/vm/web_devel.img,bus=virtio,size=50 indicates the path to the virtual disk which can be a file, partition, or logical volume. In this example a file named web_devel.img in the current users directory, with a size of 50 gigabytes, and using virtio for the disk bus. Depending on the disk path, virt- install my need to be run with elevated privileges. * -c focal-desktop-amd64.iso file to be used as a virtual CDROM. The file can be either an ISO file or the path to the host’s CDROM device. * –network provides details related to the VM’s network interface. Here the default network is used, and the interface model is configured for virtio. * –video=vmvga the video driver to use. * –graphics vnc,listen=0.0.0.0 exports the guest’s virtual console using VNC and on all host interfaces. Typically servers have no GUI, so another GUI based computer on the Local Area Network (LAN) can connect via VNC to complete the installa- tion. * –noautoconsole will not automatically connect to the virtual machine’s console. * -v: creates a fully virtualized guest. * –vcpus=4 allocate 4 virtual CPUs. After launching virt-install you can connect to the virtual machine’s console either locally using a GUI (if your server has a GUI), or via a remote VNC client from a GUI-based computer. Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling