with help from bbaren
1. Log in:
$ ssh username@vmname.xvm.mit.edu
2. Can you sudo? Try sudo bash, if you get an "username is not in the sudoers file. This incident will be reported." error, do
su -
gpasswd -a username sudo
grep sudo /etc/group should show results
(If you want to give user sudo powers)
3. If everything worked, you should see "It works!" here http://vmname.xvm.mit.edu/
4. The "It works!" page is at /var/www/index.html
Done!
Extra stuff:
Configurations are in /etc/apache2/.
1. cd /etc/apache2/sites-enabled/
2. ls -l
total 0
lrwxrwxrwx 1 root root 26 2011-05-23 20:27 000-default -> ../sites-available/default
The following changes the sites-enabled to sym link to an edited version:
3. cd ../sites-available/
4. sudo cp default default_1
5. cd ../sites-enabled/
6. sudo rm 000-default
7. sudo ln -s ../sites-available/default_1 000-default
8. sudo /etc/init.d/apache2 reload
Showing posts with label xvm. Show all posts
Showing posts with label xvm. Show all posts
Tuesday, May 24, 2011
Setting up an MIT XVM
With help from quentin and bbaren.
1. Go to https://xvm.mit.edu/
2. Fill in "Create a new VM" with
vmname.xvm.mit.edu
Your description
Selet "Autoinstall" and pick "Ubuntu 10.10 Maverick (amd64)" or your choice
3. Click "Create it!" This will take 5 minutes or more.
After a few seconds, your new vm's row appears on top with an orange installation sign
You can see the installation process by ssh vmname@xvm-console.mit.edu
4. After the orange installation sign turns into a green power button, click on "vmname"
5. Click on "Power on" and wait a while for it to turn on.
6. ssh vmname@xvm-console.mit.edu again.
Press Enter. You should see "vmname login:"
Type in "root' and press Enter
7. Create root password:
root@vmname:~# passwd
8. Create new user, "username":
root@vmname:~# useradd -m -s /bin/bash username
root@vmname:~# passwd username
9. Install OpenSSH so you can SSH
root@vmname:~# aptitude install openssh-server openssh-client
Optional: test that SSH works
ssh localhost
logout
10. Give user, "username", ability to sudo
gpasswd -a username sudo
grep sudo /etc/group should see "username" is there.
11. Log out of root
logout
12. Close terminal
13. Login user, "username", in a new terminal:
ssh username@vmname.xvm.mit.edu
1. Go to https://xvm.mit.edu/
2. Fill in "Create a new VM" with
vmname.xvm.mit.edu
Your description
Selet "Autoinstall" and pick "Ubuntu 10.10 Maverick (amd64)" or your choice
3. Click "Create it!" This will take 5 minutes or more.
After a few seconds, your new vm's row appears on top with an orange installation sign
You can see the installation process by ssh vmname@xvm-console.mit.edu
4. After the orange installation sign turns into a green power button, click on "vmname"
5. Click on "Power on" and wait a while for it to turn on.
6. ssh vmname@xvm-console.mit.edu again.
Press Enter. You should see "vmname login:"
Type in "root' and press Enter
7. Create root password:
root@vmname:~# passwd
8. Create new user, "username":
root@vmname:~# useradd -m -s /bin/bash username
root@vmname:~# passwd username
9. Install OpenSSH so you can SSH
root@vmname:~# aptitude install openssh-server openssh-client
Optional: test that SSH works
ssh localhost
logout
10. Give user, "username", ability to sudo
gpasswd -a username sudo
grep sudo /etc/group should see "username" is there.
11. Log out of root
logout
12. Close terminal
13. Login user, "username", in a new terminal:
ssh username@vmname.xvm.mit.edu
Subscribe to:
Comments (Atom)