General :: Get Unique Host Id Of Machine C/c++?

Feb 5, 2011

I am looking for c/c++ code (no third party lib dependency) to get the physical address of ethernet card on mother board.Most of them suggests to use the linux commands and process the output. For example "/sbin/ifconfig eth0".The problem with above command is that when you run this on a linux variant which is running using VirtualBox on windows host, it's not returning the correct mac address. In this case the correct mac address is the one set for individual virtual machine."/sbin/ifconfig eth0" works fine when linux variant is installed normally.There is another case when linux variant is installed normally and if you install virtualization apps such as VirtualBox or VmPlayer, they create a virtual adepter for their own use. In that case running "/sbin/ifconfig" returns all the adepters. (physical and virtual)

View 1 Replies


ADVERTISEMENT

General :: How To Configure Serial Port Of Virtual Machine With Host Machine?

Jul 29, 2009

I successfully installed the virtual box on my fedora 8 system, and also created a virtual machine with windows xp OS, it works nicely, I try to configure the serial port of my virtual machine and try to configure the path for the port "screen shot are attached" it gives me the error message also the "screen shot are attached" for your review.Is kind of mistake is going on during the path setting, and how to set the path for configuring the serial port of my virtual machine so that I can use the hyper terminal tool of windows.

View 4 Replies View Related

Networking :: Mounting Unique Filesystem Or Directory By Network Booted Host?

Apr 6, 2010

I have a number of diskless hosts which are to bootth PXE and mount their root filesystem on an NFS share. Most of the NFS share will be common to to all of the diskless hosts. No problem with that part.I also need part of the NFS shared filesystem to be unique to each individual host. The only difference between the hosts is the ethernet MAC. I use it in the DHCP server to key a specific unique IP to each host. I would like to be able to use either the MAC, or the IP, or any other unique identifier that can be derived very early in the boot process to access a filesystem or directory that is unique to each diskless host.

I need/want to do this because I need/want to isolate all of the system maintenance to one small part of the boot host. Modifying the hardware (these are VME CPUs) in any way is not an option; they must be field swappable, with all maintenance isolated to the boot host(s).I know I could run ifconfig and parse its output to derive an IP &/or MAC, but that seems a bit kludgey and fragile. The DHCP server is presently assigning IPs. I know I can arrange to pass a unique option value via the DHCP server, but don't know if or how this can be retrieved on the diskless nodes. I am presently passing the 'root=' kernel argument from the bootloader, but I don't think there is any way to pass other filesystem information using that mechanism.

I know I can pass some kernel arguments from the bootloader, but there doesn't seem to be any generic message that can be retrieved in userspace as part of the boot process. I've scanned around in the /proc filesystem, looking for the IP or anything else that seems to uniquely identify the host, but don't see anything there, either.The init process has not yet been cast in stone, but is very likely to be a BusyBox built-in

View 5 Replies View Related

General :: Ssh From Virtual Machine To Main Host?

Mar 17, 2011

ok how do you add a rule which allows a virtual machine to connectto ssh on the main fedora host?so connecting from a virtual machine to the main fedora host installation? I think i have to use an iptables command but not really sure

View 3 Replies View Related

Software :: Make Licensing Software - Find Unique Identifiable String For A Machine That User Cannot Change?

Jan 19, 2011

I want to make licencing software. For that first i am retrieving hdd serial no, nic mac address. But the prob is, what if someone changes/replicates its hdd serial no or mac address ? Many softwares are available to do so, in market. How can I find some unique identifiable string for a machine that user can not change?

View 3 Replies View Related

General :: Virtual Machine - Connect To Guest From Host PC Using Putty?

Feb 6, 2010

How can I connect to Linux (which is in a VM) from the host PC using putty? I can ping the 192.168.1.108 from my host PC. And there is sshd process running on Linux. I choose the SSH to connect, but gives error.

View 5 Replies View Related

General :: Deploy Windows Server 2008 R2 In Virtual Machine On Host?

Jul 27, 2011

Will there be any issues installing and then subsequently running a Microsoft Windows Server 2008 R2 installation on a VirtualBox VM on a Linux host (Ubuntu 11.04 64-bit)? I require Windows Server 2008 R2 for a course I'm taking, and I dont have any systems to install/deploy it onto.

Host Machine Specs:

Ubuntu 11.04 64-bit
4GB RAM
350GB Disk Space
Nvidia Quadro system

View 2 Replies View Related

General :: Create A Unique Zip With Only Public Subdirectory?

Apr 15, 2010

I've a lot of websites (100+ directories) I want to create a unique zip with only public subdirectory.

My structure now is like:

- Site 1
--- app
--- tmp
--- log
--- public

[Code]...

View 4 Replies View Related

General :: Show Only Unique Words Between Two Files?

Feb 23, 2011

Quote:File1:
Hi, My name is John smith
Quote:
File2:
Hi, My name is smith

I want to show only the different or unique word between the two files (John)i was trying to get it with diff, comm, sort, uniq, grep, awk, sed

View 5 Replies View Related

General :: Filter Out Unique Results From Grep Output?

Feb 21, 2010

In linux, I can grep a string from a file using grep mySearchString myFile.txt.
How can I only get the result which are unique?

View 1 Replies View Related

General :: Creating Unique Users Accounts Using Count?

Mar 16, 2011

I am trying to create users accounts reading from a file. I can get it to show if the user already exists but I want it to instead of not creating the user account to create e.g. Scott1 etc.The code i have so far is :

#!/bin/bash
while read line
do

[code]...

View 4 Replies View Related

Ubuntu :: How To Host Website On Own Machine

Sep 22, 2010

I've heard that all one needs to do to host a website is to install apache2 and then create my own webpages in /var/www. Like I could start out putting a file "index.html" in /var/www and it would show up on the web.If this is true, what would my website address be on the web?

View 6 Replies View Related

General :: Deleting First Line With Unique String Then All Subsequent Lines Thereafter?

Jan 20, 2011

I am doing molecular dynamics where I have to edit files. I have looked at tutorials for grep and sed but can't find my solution. The files produced in my simulations look something like this:

ATOM 1825 NE2 GLN 112 113.646 27.895 14.456
ATOM 1826 HE21 GLN 112 114.020 26.957 14.490
ATOM 1827 HE22 GLN 112 112.649 28.039 14.388

[code]...

View 5 Replies View Related

Server :: Run A Script On Host Machine From A Webpage?

Jul 26, 2011

it was possible to run a script (something.sh) on a server when a button on a webpage is pressed. I already have Apache set up and I will set up php if I have to.

View 5 Replies View Related

General :: Find Unique Extensions Or Formats In Deep Folder Structure

Jul 11, 2011

I have a deep folder structure on my RHEL 5.x file system which is supposed to have only word(*.doc, *.docx) or pdf(*.pdf) files. But I want to check if there are files with any other extensions which exist. Is that possible?

View 2 Replies View Related

Fedora :: Allows A Virtual Machine To Connect To Ssh On The Main Host?

Mar 17, 2011

you add a rule which allows a virtual machine to connect to ssh on the main fedora host?so connecting from a virtual machine to the main fedora host installation? I think i have to use an iptables command but not really sure

View 3 Replies View Related

Ubuntu Networking :: After Upgrade, Machine Accessible By Ip, Not Host Name?

May 14, 2010

I have just upgraded to 10.04 (not ideal I know, thought I would give it a go). Now the machine is only accessible via its IP, not host name. I reinstalled Samba, but still not working

View 1 Replies View Related

Ubuntu Networking :: Connecting A Virtual Machine To A Host Via NFS

Jul 7, 2011

I am currently running ubuntu on a qemu-kvm virtual machine, and the host is fedora. I would like to mount a folder of the host machine on my VM, but never succeeded. The result of the command is :

root@armnlib-kvm:~# mount -v 192.168.1.10:/nfs /nfs
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Thu Jul 7 06:02:43 2011
mount.nfs: text-based options: 'addr=192.168.1.10'

[Code]....

View 2 Replies View Related

Ubuntu Networking :: Can't Get Ssh Into A Virtual Machine To Work - Host And Guest

Jan 28, 2010

I'm trying to ssh into a virtual installation of ubuntu I have, named "ubuntu-x86" but I can't get it to work for some reason. I have two network cards, both assigned to NAT, on the virtual machine, but one has a static IP address, while the other uses DHCP. For some reason, the command:

[Code]....

View 7 Replies View Related

Ubuntu Networking :: Server + KVM. Guest Os Can Reach Wan But Host Machine Cannot?

Oct 13, 2010

I've set up ubuntu server 10.04 x64 with kvm and bridged networking and installed win server 2008 as a guest os. The guest os has full access to the network including lan/wan but the host os can only reach my lan and not the wan. This is true even when the guest machine is powered off?I have to admit that my knowledge of networking, particularly with respect to linux is very flakey but surely if the guest has internet access this should also apply to the host? My only suggestion is an issue with mac addresses but i don't know where to start. Has anybody ran into this problem before?

View 3 Replies View Related

Ubuntu Servers :: Image-virtual: For Host Machine Or Guest OS?

Dec 2, 2010

I couldn't find a clear answer to this, but is the linux-image-virtual package for host machines that will contain VMs, or a VM-oriented kernel for guest OS (ubuntu)? I have some guest VMs running on Microsoft's Hyper-V, and was looking for some further optimizations.

View 3 Replies View Related

Ubuntu :: Get Other Users On The Same Host Machine Access To Those Virtual Machines Within VB?

Jul 9, 2011

I've installed VirtualBox OSE and have a couple of guest OS setup. I am running Ubuntu 11.04 and VBOSE version 4.x (the most current). Now this installs the guest OS virtual harddrives to a folder in my home directory. How do I get other users on the same host machine access to those virtual machines within VB? Currently logging in as another user and going to Applications/Accessories/VirtualBox OSE ... the list of guest machines is empty save of course on my login.

View 3 Replies View Related

Server :: Host Machine Giving Lag Jerks To Clients Connected

May 25, 2011

I have a VPS from Providerservice and I am their customer for over a year now. They've been great throughout the year. They had awesome support and awesome Network quality. I Host GameServers and since the last month, my Servers have been giving big lag jerks to all the clients connected. Like one big lag jerk every 5 minutes. When such a thing happens, the first thing I usually check is the Network. From 10 different machines, I did MTR traceroutes and there was not even a single packet that was lost so I was sure that the Network is not causing it. I observed my CPU usage, RAM usage, HDD usage and everything was normal but GameServers still lagged. Now today, I reloaded a complete new Debian OS and copied the Game Server files exactly from my other machines.

There was no extra program or software installed on the server, but that didn't help remove the Lag. So now I'm sure its not my VPS that causes it. Such a thing happened with me before. No Network packets were being lost and my VPS showed CPU/Ram/HDD to be normal. I asked my Provider and they said one of our user is spiking the CPU with a large number of SQL queries and that's why your lagging. But I talked to this company, they've checked their Host machine and they see nothing wrong with it. According to them, everything is normal at the Host machine. So we are short of ideas on what to do and that's why I'm here to take some expert opinions, the following things are for sure :

-> My Game Server files are exactly as I run on other machines without Lag and even on the current machine 1 month ago without Lag.
-> The VPS itself is not causing the Lag.
-> I've checked Network and no packets are loss, not sure about any difference between ICMP or UDP packets since the game is UDP.
The most probable thing is the Host machine itself. This usually happens when the Game Server falls out of resources and gets stuck.

View 3 Replies View Related

Software :: Use Traceroute To View Hop Count Between Machine And A Specified External Host

Nov 3, 2010

I'm trying to use traceroute to view hop count between my machine and a specified external host but no matter what I give to it, it provides me the same output:

[Code]...

What am I doing wrong? Should I be disabling DNS caching? Is there a property I haven't set correctly? Just a small FYI, but I dual boot this computer with Win7 and it's tracert works fine. UPDATE: I also ran the command from a different network and it worked fine. I'm assuming I need a port forward then?

View 4 Replies View Related

Slackware :: Share Files Between A Host And A Windows Machine In VirtualBox?

Aug 18, 2010

What is the best way to share files in virtualbox between host/machine I thought of trying usb but the devices are all greyed out. I know the fix for this but I have to search for it, permission problem I think? Or is there a more elegant way

View 4 Replies View Related

CentOS 5 :: Accessing The Web Application Running In VirtualBox From Host Machine?

Feb 11, 2009

I installed Tomcat5.5.23 on CentOS5.2 running on Sun xVM Virtual Box2.1.2. When i try to view Tomcat( Running in Vitual Centos)'s home page in the web browser of Host( XP sp2) am getting the "Connection Time out" error.. How to resolve this problem.

View 2 Replies View Related

OpenSUSE :: Run LAMP In A Virtual Machine And Access The Web Server Via A Browser On The Host?

Aug 31, 2010

How can I run LAMP (Linux, Apache, MySQL, PHP) in a virtual machine (Ubuntu in virtual box) and make it so the web server is accessible locally (and ONLY locally) on the host OS via an ip address?

View 3 Replies View Related

Ubuntu Servers :: Shared Folders - Transfer File From Host Machine?

May 27, 2010

I have ubuntu server as a guest in virtualbox and xubuntu as my host os. I have a shared folder on my host that can be accessed by my network. I'm trying to use my server without the need to install a desktop, so how would i transfer a file from my host machine to my ubuntu server guest?

View 5 Replies View Related

Ubuntu Servers :: Multiple Websites On Single Host Machine Without Virtualisation

Jun 1, 2010

I have this intra net server project going on and now I moved to 10.04 however there are still some things that I would like to see clarification and instructions on. I am interested to set up multiple parallel websites for my apache server, however I am not sure how to do this exactly. Now I have solid address rivera.wippies.net and port 80 redirecting to my server. What I would like to get done is that I get multiple independent of each other websites for my server I was thinking of making websites like this

/var/www/site1 (which would be as rivera.wippies.net)
/var/www/site2 (which would be as rivera.wippies.net/othersite)
/var/www/site3 (which would be rivera.wippies.net/secondothersite)

etc, so that I have multiple "individual" websties for my server. Requirements would be that each of these websites could have SSL encryption as needed available too, since some of the website could have confidential information.

View 9 Replies View Related

Applications :: Scp Copy A Directory And Its Contents From A Remote Machine To Local Host

Oct 8, 2010

For the life of me I can not figure out what I am doing wrong with scp to copy a directory and its contents from a remote machine to my local host. I have no issues with getting a single file but would like to just save time and get the whole folder in one command.

Here is what I have tried:

scp user AT remoteMachine:/home/username/folderIwant user AT localMachine:/folderIwant this gives me a permission denied error and try again and received disconnect from localHost to many authentication failures

scp user AT remoteMachine:home/username/folderIwant . says can not find file or folder

I am sure this is something easy that I cant remember, and searches gives me local to remote not remote to local and trying to make the local to remote suggestions I read to work remote to local have not worked.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved