Ubuntu Server Guide Changes, errors and bugs
Get the list of running VMs
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
- Bu sahifa navigatsiya:
- More uvt-kvm options
- Introduction
Get the list of running VMs
You can get the list of VMs running on your system with this command: $ uvt−kvm l i s t s e c o n d t e s t Destroy your VM Once you are done with your VM, you can destroy it with: $ uvt−kvm d e s t r o y s e c o n d t e s t Note: other than libvirts destroy action this will by default also remove the associated virtual storage files. More uvt-kvm options The following options can be used to change some of the characteristics of the VM that you are creating: • --memory : Amount of RAM in megabytes. Default: 512. • --disk : Size of the OS disk in gigabytes. Default: 8. • --cpu : Number of CPU cores. Default: 1. Some other parameters will have an impact on the cloud-init configuration: • --password password : Allow login to the VM using the Ubuntu account and this provided password. • --run-script-once script_file : Run script_file as root on the VM the first time it is booted, but never again. • --packages package_list : Install the comma-separated packages specified in package_list on first boot. A complete description of all available modifiers is available in the manpage of uvt-kvm. Resources If you are interested in learning more, have questions or suggestions, please contact the Ubuntu Server Team at: • IRC: #ubuntu-server on freenode • Mailing list: ubuntu-server at lists.ubuntu.com 109 Introduction The virt-manager source contains not only virt-manager itself but also a collection of further helpful tools like virt-install, virt-clone and virt-viewer. Virtual Machine Manager The virt-manager package contains a graphical utility to manage local and remote virtual machines. To install virt-manager enter: sudo apt i n s t a l l v i r t −manager Since virt-manager requires a Graphical User Interface (GUI) environment it is recommended to be installed on a workstation or test machine instead of a production server. To connect to the local libvirt service enter: v i r t −manager You can connect to the libvirt service running on another host by entering the following in a terminal prompt: v i r t −manager −c qemu+s s h : / / v i r t n o d e 1 . mydomain . com/ system Note The above example assumes that SSH connectivity between the management system and the target system has already been configured, and uses SSH keys for authentication. SSH keys are needed because libvirt sends the password prompt to another process. Download 1.27 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling