Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Mar 31, 2011 2:07 pm 
Offline
Newbie

Joined: Thu Mar 10, 2011 3:08 am
Posts: 2
Website: http://www.webdesignbymary.com
Location: New Hampshire
I'm new to VPS and I currently have my sites up on a linode 512 running Ubuntu 10.04. I was wondering if it's possible to have another server running on the same linode. If this is possible how would I access the second server? Would I need a different IP or can I use the 1 I have now. The second server would be for me to play and learn on so I don't break the server that my sites are running on.

Thanks in advance.

_________________
Mary M.


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 2:16 pm 
Offline
Senior Member

Joined: Mon Oct 27, 2008 10:24 am
Posts: 173
Website: http://www.worshiproot.com
No.

You can have different boot configurations/disk images/etc, but only one configuration can be booted at one time.

You can have multiple Linodes on one account.


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 2:16 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
No you can't. You can only run one server per linode. If you want a development server you will have to purchase a second server.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 2:25 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
If you just want to play and learn, there are cheaper options than purchasing a second linode. For example, install VirtualBox on your own computer, download a Ubuntu LiveCD ISO, and boot it up in its own little window. It works almost like a real server, and if you use snapshots, you can instantly revert any mistakes you make.


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 6:30 pm 
Offline
Senior Member

Joined: Wed Mar 03, 2010 2:04 pm
Posts: 111
Huh. I always play and learn on my live Linode. :) But it is only my own sites, so the risk is bearable to me.

I partitioned things small enough (and keep /home separate) so that before I do any major undertaking, I make a fresh copy of my boot disk image. So if I have to boot the older working disk image in a pinch, I can get back to where I used to be pretty quickly. Definitely have had to use that a few times.

Agree with the Virtualbox suggestion too, that's a lot of fun. And frankly any old PC can run Ubuntu, so if you have an old one lying around you can use that too.


Top
   
 Post subject: Virtual Box
PostPosted: Thu Mar 31, 2011 10:59 pm 
Offline
Junior Member

Joined: Tue Apr 06, 2010 8:08 pm
Posts: 22
Location: U.S.
@hybinet or someone ---

Can you run both an apache and an ubuntu server on a virtual machine? I assume "yes" ? I have to have dev sites for a Drupal install on apache and yet another Drupal multisite install on a Linode ubuntu.

I've got an XP box running in VMware player on a Win7 so I have a tiny bit of knowledge about a virtual box. (It was easier/faster for me to do the VMware image rather than moving everything over to new Win7 machine.)

Wondering which is better -- VMWare or Virtual Box -- any thoughts?


Top
   
 Post subject:
PostPosted: Thu Mar 31, 2011 11:30 pm 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
Couldn't one boot XEN Dom0 kernel using GRAB?


Top
   
 Post subject:
PostPosted: Fri Apr 01, 2011 12:21 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
nw-woman: Apache is a program, Ubuntu is an operating system; you couldn't run Apache without some sort of operating system. I personally use VirtualBox, since it is free and is in Ubuntu's repository.

neo: By definition, a Xen domU cannot be a dom0. There is only one layer of magic available, and it's already being used.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Fri Apr 01, 2011 2:03 am 
Offline
Senior Member

Joined: Sat May 02, 2009 12:44 am
Posts: 92
hoopycat wrote:
neo: By definition, a Xen domU cannot be a dom0. There is only one layer of magic available, and it's already being used.

I am not very familiar with XEN details, but at one point I was running VMWARE within VMWARE and it worked just fine.


Top
   
 Post subject:
PostPosted: Fri Apr 01, 2011 8:19 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
neo wrote:
I am not very familiar with XEN details, but at one point I was running VMWARE within VMWARE and it worked just fine.

You probably could run Xen within Xen if the 'outermost' instance was using hardware assisted virtualisation. Linode uses paravirtualisation, which is the one layer of magic that hoopycat was referring to.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Tue Apr 05, 2011 6:02 pm 
Offline
Junior Member

Joined: Tue Apr 06, 2010 8:08 pm
Posts: 22
Location: U.S.
Quote:
nw-woman: Apache is a program, Ubuntu is an operating system; you couldn't run Apache without some sort of operating system. I personally use VirtualBox, since it is free and is in Ubuntu's repository.


Oh boy, did I really say that? Must have been a really bad brain-fried day. Wow. What I meant to say is: I've got an external portable SeaGate hard drive that has an XP image on it where Apache is running a Drupal dev site. I use VMware player to run it on a Win7. Anyone know if it's possible to put an Ubuntu OS image on that same SeaGate where I could have ningx or apache running a Drupal dev multi-site? I'm new to ningx but it looks interesting, esp for mem hog Drupal; haven't decided which server I'll use.

I'm also new to virtualization. What I did to wrap up XP and put it on the SeaGate was my first try and was really easy. I guess I'd have to partition the Seagate to run two OS's on it but no idea how. Or I suppose I could get another Seagate and make that one an Ubunto OS. Is that a better idea?

While I'm at it, I'm also wondering if I could take the image off my linode and just install that on a portable drive and run it with VMware player. Anyone done that?

My goal is to create two dev Drupal sites using different OSs locally. I'd prefer not to run it on my internal hard drive.


Top
   
 Post subject:
PostPosted: Tue Apr 05, 2011 10:47 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
If you look at the contents of the hard drive from your "host" operating system (not in VMware, but just looking at it like a directory), you'll probably see that it just has one really big file, maybe with a couple configuration files near it. Something like this (but probably with a different extension and all that):

Code:
rtucker@witte:~$ ls -l /opt/virtualbox/Windows\ 7.vdi 
-rw------- 1 rtucker rtucker 32212378112 2011-04-05 22:27 /opt/virtualbox/Windows 7.vdi


That's the disk image for the "guest" (virtual machine). Doesn't matter if it's on an external hard drive, an internal hard drive, or a network file share: it's just a plain ol' file.

As long as you have room left on that drive for more stuff, you can have a whole slew of virtual machines on there. You might even be able to run multiple virtual machines at the same time...

Code:
rtucker@witte:~$ ls -lt /opt/virtualbox/*.vdi
-rw------- 1 rtucker rtucker 32212378112 2011-04-05 22:31 /opt/virtualbox/Windows 7.vdi
-rw------- 1 rtucker rtucker  1732322304 2011-04-05 22:28 /opt/virtualbox/chefdev-db.vdi
-rw------- 1 rtucker rtucker  1586528768 2011-04-05 22:17 /opt/virtualbox/chefdev-app.vdi
.....
rtucker@witte:~$ ps auxwww | grep VirtualBox
rtucker  16094  4.5  4.8 1127456 579308 ?      Sl   Apr02 231:35 /usr/lib/virtualbox/VirtualBox --comment chefdev-app --startvm <redacted>
rtucker  16143  8.2  9.5 1793532 1142504 ?     Sl   Apr02 420:59 /usr/lib/virtualbox/VirtualBox --comment Windows 7 --startvm <redacted>
rtucker  16178  4.5  4.8 1129760 580776 ?      Sl   Apr02 229:46 /usr/lib/virtualbox/VirtualBox --comment chefdev-db --startvm <redacted>
...


(I'm running VirtualBox on top of Ubuntu here, but it is functionally equivalent to VMware.)

As for running a Linode image locally... it is technically possible, but not easy. VMware and VirtualBox present a complete microcomputer simulation to the guest, going so far as to emulate a BIOS that jumps to the guest OS's master boot record.

Linode doesn't do that, since it is unnecessary: Linux natively supports the Xen architecture, and so the whole BIOS part is skipped and it starts by executing a Linux kernel, one which isn't even contained within your Linode's filesystem.

So, to make it work on VMware/VirtualBox, you'd need to install a kernel, and a bootloader to boot that kernel. Then, you'd have to make sure it is within a partition on a disk image with a partition table and the correct master boot record. THEN it will work.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group