Running Porteus off of USB to load .VHD files from Network

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
KenF3TG
Ronin
Ronin
Posts: 3
Joined: 24 Aug 2011, 17:21
Location: Texas, USA

Running Porteus off of USB to load .VHD files from Network

Post#1 by KenF3TG » 25 Aug 2011, 17:40

I will appologise in advance because I know the format that i post this in will inevitably be incorrect in some shape or manner (even after having read the how to post faq).

My background: I just started using linux based platforms about two days ago. Porteus is my first platform.

My Situation: I want to load .vhd files that were created from Microsoft Hyper-V within Porteus. I have successfully installed Porteus and booted it from a USB drive. I can connect to network storage locations and locate my .vhd files. Will Porteus support running an application using virtualization to load these .vhd files?

Edit: Trying to download and use VirtualBox but very open to suggestions for compatible applications
Last edited by KenF3TG on 25 Aug 2011, 17:47, edited 1 time in total.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Running Porteus off of USB to load .VHD files from Netwo

Post#2 by Hamza » 25 Aug 2011, 17:46

Do you want to use VBox Disk from Another Network Place ?
What is the protocol used to locate the file? I think, it is Samba (CIFS)

Please post more information.
NjVFQzY2Rg==

KenF3TG
Ronin
Ronin
Posts: 3
Joined: 24 Aug 2011, 17:21
Location: Texas, USA

Re: Running Porteus off of USB to load .VHD files from Netwo

Post#3 by KenF3TG » 25 Aug 2011, 18:09

I want to be able to run VBox within Porteus to load a .vhd (virtual machine from hyper-V) that is stored on a server on my network. All I am doing to access the network storage is going to home, then typing "\\#.#.#.#\" (my server's ip address) in the address bar and it pulls it right up. Let me look up how to find out what protocol is being used and I'll get back to you with that information. As far as more information, I am still learning what information is available for me to give you, so please forgive my ignorance at this point, I'm teaching myself linux as we speak.

Posted after 10 minutes 39 seconds:
Re: Running Porteus off of USB to load .VHD files from Network
I can only assume Samba SMB/CIFS, it seems to be the default protocol for linux destros. And yes, the .vhd files are located on the network, so all I would need is proteus on the usb drive (done) and Vbox on the usb drive (not done, server keeps timing out on download). Then I would just be accessing the network for the file locations. hmm...(to myself)but without a physical nic emulating a virtual switch, the virtual machines wouldn't have network access due to a lack of a virtual nic. I wonder if Vbox would take care of that, if not...this whole line of questioning is obsolete.
(back to you) What information can I give you that would help you out?

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Running Porteus off of USB to load .VHD files from Netwo

Post#4 by Hamza » 25 Aug 2011, 18:24

You are using Samba Server. So, you will need to write a script to mount a CIFS to point to your server.

Code: Select all

#!/bin/bash

if [ "`whoami`" != "root" ]; then
echo "You must execute `basename $0` as root"
exit 1
fi

mkdir /mnt/remote_server
IP=x.x.x.x ### COMPLETE THIS
RPTH=/path/to/remote_path ### COMPLETE THIS
USER=XXX ### COMPLETE THIS
PASS=XXX ### COMPLETE THIS
DOMAIN=XXX ### COMPLETE THIS

/sbin/mount.cifs //$IP/$RPTH /mnt/remote_server -o user=$USER;password=$PASS;domain=$DOMAIN

if [ "$?" == "0" ]; then
echo "The remote filesystem has been mounted as '/mnt/remote_server'"
else
echo "It appear that something wrong."
rm -Rf /mnt/remote_server
fi
Try this script, complete the login's information and remote path before to run it.

Enjoy!

I did not tested it.

Update : I fixed an error with synthax on mount.cifs line.
Last edited by Hamza on 25 Aug 2011, 18:51, edited 2 times in total.
NjVFQzY2Rg==

KenF3TG
Ronin
Ronin
Posts: 3
Joined: 24 Aug 2011, 17:21
Location: Texas, USA

Re: Running Porteus off of USB to load .VHD files from Netwo

Post#5 by KenF3TG » 25 Aug 2011, 18:31

thank you Hamza, you have been very helpful.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Running Porteus off of USB to load .VHD files from Netwo

Post#6 by Hamza » 25 Aug 2011, 18:39

You're welcome. Did you tested the previous script ?
NjVFQzY2Rg==

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Running Porteus off of USB to load .VHD files from Netwo

Post#7 by brokenman » 27 Aug 2011, 17:07

Welcome to linux ... and porteus. I hope you enjoy your ride.

You can download vbox from the porteus server. You should have no troubles using a remote vhd. Vbox will take care of networking.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply