Sponsored Content
Operating Systems Solaris Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host Post 302628561 by Matt_VB on Monday 23rd of April 2012 04:58:50 PM
Old 04-23-2012
Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12).

I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box command line interface (e.g., VBoxManage, etc.). However, nothing seems to be able to enable me to set/modify the random 8-hexdigit hostID value of the Solaris 10 virtual machine. I want to be able to execute the 'hostid' command from a terminal window on the Solaris 10 virtual machine and have it display a hostID value that I set.

Is there a way to set/modify the hostID value of a Solaris 10 virtual/guest machine that was installed by Virtual Box 4.1.12 (or potentially by any other virtual machine installation tool) on a Windows XP system ?
 

10 More Discussions You Might Find Interesting

1. Solaris

Is there any Virtual data center as we have Virtual Machine?

Do we have any Virtual Data Center software as we have Virtual Machine? I want to practice everything of Solaris practically but i don't have resources like data center which includes Servers, Data storages, switches, and other things. (2 Replies)
Discussion started by: karman0931
2 Replies

2. Virtualization and Cloud Computing

virtual box instalation problem in windows XP machine

Hi friends, i have downloaded VirtualBox-3.0.4-50677-Win.exe , when i try to install i have selected virtualbox USB support , virtualbox networking support . when i click the install button, after some progress bar completion , i am getting the below error messages.... (4 Replies)
Discussion started by: vr_mari
4 Replies

3. Windows & DOS: Issues & Discussions

Need suggestions on Virtual Machine software for Windows

Hi, I am currently having an issue with Virtualbox. It, at one point in time, worked like a charm. Then my internal 500GB HD failed in my PC. It was under warranty and I sent off for another one but did not want to pay for the expedited shipping nor did I want to wait a few weeks to get the... (1 Reply)
Discussion started by: tlarkin
1 Replies

4. Solaris

Solaris virtual machine access on host os

Hi I have two solaris 10 virtual machines on my Vista laptop. I want to access both machines using putty in vista. I used DHCP while installing virtual machines. one machine gets the ip address and other does not. What is the problem? can i assign a static ip address if yes how? ... (2 Replies)
Discussion started by: ankurk
2 Replies

5. Ubuntu

ip on ubuntu installed using Virtual Box

Hi All I have few computers in the same network using a wifi router. In Each of them I installed VirtualBox and I created an image of Ubuntu 8.04 The thing is that each of those images has the same ip eth0=10.0.2.15. Do you know how can I make possible each virtual machine having another IP or... (2 Replies)
Discussion started by: manustone
2 Replies

6. UNIX for Dummies Questions & Answers

How can i understand if a Java Virtual Machine is installed on Unix??

Hello, i would like to figute out, if there is any JVM installed on my unix account. How can i figure that out?? Thanks (1 Reply)
Discussion started by: g_p
1 Replies

7. Red Hat

My RHEL virtual Machine Does not have Virtual Machine Manager Desktop Tool

My RHEL virtual Machine Does not have Virtual Machine Manager Desktop Tool Hi, I don't seem to have the Virtual Machine Manager Desktop tool set up on my RHEL6 Machine. The Linux machine runs off VMWare player and I'm not sure whether it is a VMWare software issue or a problem with the RHEL6... (2 Replies)
Discussion started by: accipiter1
2 Replies

8. AIX

IBM Virtual Machine OS on intel x86 and x64? IBM AIX OS on IBM Virtual Machine?

Hi There, I have zero information and zero knowledge for IBM virtual machine except Amazon cloud and VMware ESXi (Only Linux OS available). Anyone could provide me the following answer - Can IBM VM been deploy on X86 and X64 (Intel Chip)? If answer is yes any chance to deploy AIX OS... (13 Replies)
Discussion started by: chenyung
13 Replies

9. Solaris

Solaris 10 virtual - how do I tell physical host?

uname -a reports type Generic so I know its virtual. Assume its an ldom somewhere. How do I find out what physical host server is? (4 Replies)
Discussion started by: psychocandy
4 Replies

10. UNIX for Beginners Questions & Answers

Providing virtual machine priority in kvm based virtual machines

Hi All, Is there any way I can prioritize my VMs when there is resource crunch in host machine so that some VMs will be allocated more vcpu, more memory than other VMs in kvm/qemu hypervisor based virtual machines? Lets say in my cloud environment my Ubuntu 16 compute hosts are running some... (0 Replies)
Discussion started by: SanjayK
0 Replies
virt-image(5)						   Virtual Machine Install Tools					     virt-image(5)

NAME
virt-image - Format of the virtual image XML descriptor DESCRIPTION
virt-image(1) relies on an XML descriptor to create virtual machines from virtual machine images. In general, a virtual machine image consists of the XML descriptor (usually in a file image.xml) and a number of files for the virtual machine's disks. In the following explanation of the structure of the image descriptor, mandatory XML elements are marked as element, whereas optional elements are marked as element. All file names in the image descriptor are relative to the location of the descriptor itself. Generally, disk files are either kept in the same directory as the image descriptor, or in a subdirectory. HOST MATCHING
The image descriptor contains information on the requirements a guest has on the host platform through one or more the /image/domain/boot descriptors (see section "BOOT"). The image can only be used if at least one of the boot descriptors is suitable for the host platform; a boot descriptor is suitable if: o The CPU architecture of the boot descriptor, given by the boot/guest/arch element, is supported by the host o The host supports a guest with the features requested in the boot/guest/features element, such as providing an APIC, or having ACPI turned off If a suitable boot descriptor is found, the guest is created and booted according to the information about booting the OS from the boot/os element and with the disks specified in the boot/drive element. If more than one suitable boot descriptor is found, one of them is chosen based on a heuristic, generally preferring paravirtualized guests over full virtualized ones, though this is an implementation detail of the tool creating the virtual machine. STRUCTURE
The image descriptor consists of three sections, all contained in the toplevel image element: General metadata about the image A number of elements like label, name, and description that give some simple information about the image. The name must be a string suitable as a name for the virtual machine, the label is a short human-readable string suitable for display in graphical UI's, and the description should be a longer, free-form description of the purpose of the image. The name is mandatory. Virtual machine attributes The domain element contains instructions on how to boot the image, and device attributes such as the number of virtual CPU's and the size of the memory. (see section "DOMAIN") Storage layout The storage element lists the files to back the virtual machine's disks and some information about their format and use. (see section "STORAGE") DOMAIN
The domain element contains one or more boot descriptors (see section "BOOT") and a devices element. The Devices element lists the recommended number of virtual CPU's in the vcpu element and the recommended amount of memory in kB in the memory element. It also indicates whether the virtual machine should have a network interface through the interface element and whether the virtual machine has a graphical interface through the graphics element. BOOT Each boot descriptor details how the virtual machine should be started on a certain hypervisor. The type attribute of the boot element, which can either be "xen" or "hvm", depending on whether the boot descriptor is for a paravirtualized Xen(tm) guest or a fully-virtualized guest. The boot element contains three subelements: The platform requirements of the guest The platform requirements, contained in the guest element, consist of the arch element and the features element. The arch element indicates the CPU architecture the guest expects, e.g. "i686", "x86_64", or "ppc". The features element indicates whether certain platform features should be on or off. Currently, the platform features are pae, acpi, and apic. They can be turned on or off by giving a state attribute of either "on" or "off". When a feature is mentioned in the features element, it defaults to "on". The details of booting the image's operating system The os element for fully-virtualized "hvm" guests contains a loader element whose dev attribute indicates whether to boot off a hard disk ("dev='hd'") or off a CD-ROM ("dev='cdrom'") For paravirtualized guests, the os element either contains a "<loader>pygrub</loader>" element, indicating that the guest should be booted with pygrub, or kernel, initrd and cmdline elements. The contents of the kernel and initrd elements are the names of the kernel and initrd files, whereas the cmdline element contains the command line that should be passed to the kernel on boot. The mapping of disk files as devices into the guest The mapping of disk files into the guest is performed by a list of drive elements inside the boot element. Each drive element references the name of a disk file from the "STORAGE" section through its disk attribute and can optionally specify as what device that disk file should appear in the guest through its target attribute. If the target is omitted, device names are assigned in the order in which the drive elements appear, skipping already assigned devices. STORAGE
The storage element lists the disk image files that are part of the virtual machine image in a list of one or more disk elements. Each disk element can contain the following attributes: o the file attribute giving the name of the disk file o an optional id attribute. The name given with that attribute is used to reference the disk from the drive element of a boot descriptor. If the id attribute is missing, it defaults to the file attribute. o the use attribute indicating whether the disk file is a "system", "user", or "scratch" disk. The use attribute differentiates disk files so that an update based on replacing disk files can replace "system" disks, but leave "user" disks untouched. Generally, "system" disks contain application code, "user" disks contain the application's data, and "scratch" disks contain temporary state that can be erased between runs of the guest. The virtual machine image must contain files for all "system" disks, and may contain files for the "user" and "scratch" disks. If the latter are not part of the image, they are initialized as empty files when a guest is created, with the size given by the size attribute. o the size attribute giving the size of the disk in MB. o the format attribute giving the format of the disk file. Currently, this can be one of: "raw" "iso", "qcow", "qcow2", or "vmdk". EXAMPLE
The image descriptor below can be used to create a virtual machine running the System Rescue CD ("http://www.sysresccd.org/") Besides the descriptor, you only need the ISO image from the System Rescue CD website. <?xml version="1.0" encoding="UTF-8"?> <image> <name>sysresccd</name> <domain> <boot type="hvm"> <guest> <arch>i686</arch> </guest> <os> <loader dev="cdrom"/> </os> <drive disk="root.raw" target="hda"/> <drive disk="sysresc"/> </boot> <devices> <vcpu>1</vcpu> <memory>262144</memory> <interface/> <graphics/> </devices> </domain> <storage> <disk file="root.raw" use="scratch" size="100" format="raw"/> <disk id="sysresc" file="isos/systemrescuecd.iso" use="system" format="iso"/> </storage> </image> To create a virtual machine, save the above XML in image.xml and run: # virt-image --vnc image.xml AUTHOR
Written by David Lutterkort. See the AUTHORS file in the source distribution for the complete list of credits. BUGS
Please see "http://virt-manager.org/page/BugReporting" COPYRIGHT
Copyright (C) 2006-2007 Red Hat, Inc, and various contributors. This is free software. You may redistribute copies of it under the terms of the GNU General Public License "http://www.gnu.org/licenses/gpl.html". There is NO WARRANTY, to the extent permitted by law. SEE ALSO
virt-image(1), virt-install(1), the project website "http://virt-manager.org", the Relax-NG grammar for image XML "image.rng" 2011-04-15 virt-image(5)
All times are GMT -4. The time now is 01:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy