Ubuntu Server Guide Changes, errors and bugs
Create the VM using uvt-kvm
Download 1.27 Mb. Pdf ko'rish
|
ubuntu-server-guide
- Bu sahifa navigatsiya:
- Connect to the running VM
Create the VM using uvt-kvm
In order to connect to the virtual machine once it has been created, you must have a valid SSH key available for the Ubuntu user. If your environment does not have an SSH key, you can easily create one using the following command: $ ssh−keygen G e n e r a t i n g p u b l i c / p r i v a t e r s a key p a i r . Enter f i l e i n which t o s a v e t h e key ( / home/ ubuntu / . s s h / i d _ r s a ) : Enter p a s s p h r a s e ( empty f o r no p a s s p h r a s e ) : Enter same p a s s p h r a s e a g a i n : Your i d e n t i f i c a t i o n has been saved i n /home/ ubuntu / . s s h / i d _ r s a . Your p u b l i c key has been saved i n /home/ ubuntu / . s s h / i d _ r s a . pub . The key f i n g e r p r i n t i s : 4d : ba : 5 d : 5 7 : c9 : 4 9 : e f : b5 : ab : 7 1 : 1 4 : 5 6 : 6 e : 2 b : ad : 9 b ubuntu@DISTRO−SHORT−CODENAMES The key ’ s randomart image i s : +−−[ RSA 2048]−−−−+ | . . | | o . = | | . * * | | + o+=| | S . . . . = . | | o . .+ . | | . . o o | | * | | E | +−−−−−−−−−−−−−−−−−+ To create of a new virtual machine using uvtool, run the following in a terminal: $ uvt−kvm c r e a t e f i r s t t e s t This will create a VM named firsttest using the current LTS cloud image available locally. If you want to specify a release to be used to create the VM, you need to use the release= filter: $ uvt−kvm c r e a t e s e c o n d t e s t r e l e a s e=DISTRO−SHORT−CODENAME uvt-kvm wait can be used to wait until the creation of the VM has completed: $ uvt−kvm w a i t s e c o n d t t e s t Connect to the running VM Once the virtual machine creation is completed, you can connect to it using SSH: $ uvt−kvm s s h s e c o n d t e s t You can also connect to your VM using a regular SSH session using the IP address of the VM. The address can be queried using the following command: 108 $ uvt−kvm i p s e c o n d t e s t 1 9 2 . 1 6 8 . 1 2 2 . 1 9 9 $ s s h − i ~ / . s s h / i d _ r s a ubuntu@192 . 1 6 8 . 1 2 2 . 1 9 9 [ . . . ] To run a command a s a d m i n i s t r a t o r ( u s e r ” r o o t ” ) , u s e ” sudo See ”man sudo_root ” f o r d e t a i l s . ubuntu@secondtest : ~ $ 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