Changes between Version 5 and Version 6 of Paravmssh
- Timestamp:
- May 8, 2009, 1:03:56 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Paravmssh
v5 v6 1 Go to xvm.mit.edu and log in with your personal certificate. 2 To create a new paraVM first enter a name , description, then click the Autoinstall radial button and select one of three operating systems from the drop-down menu. and finally, click "Create it!" 3 --note: you may only use <quota> MiB of RAM. if you already have two VMs, you may not have enough left. 1 XVM supports running paravirtualized guests. Paravirtualized guests are not virtual machines in the traditional sense; instead of running on emulated hardware, they are aware that they are running inside a VM system and can talk directly to the host. The result is that paravirtualized guests are significantly faster than fully virtualized guests ("HVMs"). To create a new ParaVM, first enter a name and description, then click the "Autoinstall" radio button and select one of the available operating systems from the menu. Finally, click "Create it!" 4 2 5 After creating the vm, you should wait about 5-6 minutes. This is an excellent time to get coffee, or to begin a short boffing match with one of your collegues 3 (Note that the default RAM quota is 512MiB, so if you already have two running VMs, you'll need to shut one of them down to create a new machine.) 6 4 7 After 5<?> minutes you can access the machine's console from an athena machine or any machine that has kerberos tickets. 8 assuming you have called your vm "myParaVM" 5 After creating the VM, you should wait about 5-6 minutes for the install to complete. During this time, the VM will show as "on" in the web interface. Do not power it off; the operating system is being installed. If you want to watch the progress, you can follow the next set of instructions to see the install's debugging output. 6 7 After about 5 minutes, the installation will be done. You can then press the power button in the web interface to turn the VM on. You can access the machine's console from an Athena machine or from any machine that has Kerberos tickets. Assuming you have called your machine "myparavm", you can connect to it with 9 8 {{{ 10 athena% ssh myParaVM@xvm-console.mit.edu 11 }}} 12 this will take a half-minute, but your terminal should then read 13 {{{ 9 athena% ssh myparavm@xvm-console.mit.edu 14 10 Type Ctrl-e, then c, then . to escape from the console 15 11 … … 17 13 18 14 }}} 19 hit enter. It will display information about the OS and vm name and a login promt. Type "root". If asked for a password, just hit enter. 20 Normally, we don't want to login as root, so we need to add a user 15 Hit enter to be given a login prompt. Type "root", and if asked for a password, just hit enter. At this point the machine will only allow logins as root and only allow logins from the console. Normally, we don't want to login as root, so we need to add a user: 21 16 {{{ 22 17 root@myParaVM:~# adduser username … … 30 25 }}} 31 26 32 If you chose Debian, add yourself to /etc/sudoers:27 If you chose Debian, you'll need to add yourself to /etc/sudoers: 33 28 {{{ 34 29 root@myParaVM~# visudo 35 30 }}} 36 this opens /etc/sudoers using an available text editor (probably nano if you're in Debian). 31 32 This opens /etc/sudoers using the best available text editor (probably nano if you're in Debian). 37 33 38 34 If nano is used, it should be intuitive - add the following line at the end, save with Ctrl-O, and exit with Ctrl-X: … … 41 37 }}} 42 38 43 If you are unfamiliar withoriginal vi, you can type the following sequence of keys (where <enter> and <ctrl> stand for the enter and control keys and [username] is the username you just added:39 If you instead get an original vi, you can type the following sequence of keys (where <enter> and <ctrl> stand for the enter and control keys and [username] is the username you just added: 44 40 {{{ 45 41 19jo[username]<space><space><space><space>ALL=(ALL) ALL<esc>:wq<enter> 46 42 }}} 47 <do I actually want it to be username ALL=(ALL) ALL?>48 43 49 Lastly, we need to start the ssh daemon: 50 {{{ 51 root@myParaVM~# /etc/sbin/sshd 52 }}} 53 <what distribution is this valid in?> 54 55 now open up another local terminal and try to ssh into your VM: 44 Now just open up another local terminal and try to ssh into your VM: 56 45 {{{ 57 46 athena% ssh username@myParaVM.xvm.mit.edu