![]() |
||
The Crucial Blog - Archive May 8, 2008
Xen: Console Not working Ubuntu 7We came up with an issue with Xen with Ubuntu 7 would show output on the console, however froze part way through the # aptitude install xen-tools Add the following to /etc/sercuretty xvc0 Create the file /etc/event.d/xvc0 containing: # xvc0 - getty start on runlevel 2 stop on runlevel 0 respawn Reboot Tags: debian, linux, ubuntu, xenRelated postsNo Comments Filed under: Uncategorized by — aaron @ 12:02 am March 6, 2008
HyperVM/Xen nash-hotplug using 100% of resources (Debian)Some of the default HyperVM templates have an issue with nash-hotplug taking a large amount of resources (usually 99%). If you are having this issue, a quick an easy way to fix this is add the following to /etc/rc.local on the guest VDS:
This is a temporary fix, until a more permanent one is provided by Lxlabs/HyperVM. This problem is supposedly already fixed in CentOS 4, however seems to still appear in Debian 3. For debian, do the following: Open up /etc/init.d/local and add:
Then run the following: Tags: debian, hypervm, vds, xen Related postsNo Comments Filed under: Uncategorized by — aaron @ 5:10 pm February 25, 2008
Configuring Network Interfaces on CentOS, Redhat, Fedora Core, and DebianCentOS/Red Hat/Fedora Core: The network configuration files are in the folder: The files for the interfaces will be ifcfg-eth0, ifcfg-eth1, ifcfg-eth0:0 (if there are sub-interfaces) Static IP address configuration: Please specify ‘ONBOOT=yes’ which will activate the interface upon system boot Dynamic IP address configuration: Change BOOTPROTO value to dhcp To bind a range of IP address, create a file called ifcfg-eth0-range0 (for example eth0:0, eth0:1, etc) The entries should be: ——————————- IPADDR_START: This is the first IP from the address range you want to bind to your ethernet device. The gateway for the network can be specified in the file ‘/etc/sysconfig/network’ You may also use ‘/usr/sbin/system-config-network-tui’ to configure the network interfaces Debian: The entires are: auto eth0 After you configure the network interfaces restart the network service using ‘/etc/init.d/networking restart’ Tags: centos, debian, fedora core, networking, system administrationRelated postsNo Comments Filed under: Uncategorized by — aaron @ 12:01 am February 17, 2008
Resetting lost root password in Debian serverIn Debian getting into just the single user mode may not allow you to reset the root password. It might prompt you with the following question ‘Give root password for maintenance (or Control-D to continue)’ . Don’t worry, reboot the server. (1) At grub boot screen, select the kernel and press ‘e’ to edit the entry. (2) Another list will show up. Scroll down and pick from the list something that looks like this (or something similar): kernel /vmlinuz-x.x.x-x.x ro root=/dev/abc/ (3) Type ‘e’ again to edit this line. Make sure that you press the space bar and add the following: init=/bin/bash (4) Then press enter. The line should look something like this then: kernel /vmlinuz-x.x.x-x.x ro root=/dev/abc/ init=/bin/bash (5) Press ‘b’ to boot. This will take you into a bash terminal. From there you’ll have to mount your hard drive and allow for read/write permissions. (6) mount -o remount,rw / You need to do this because / is currently mounted read-only and many disk partitions might have not been mounted yet. Or If you have to see the mount details. Type the command mount It should come up with something like, for /: /dev/abc (rw) It looks like it’s already set for read/write permissions, but it’s not (just try and reset the password with the passwd command and see what happens). To mount it again type the following command: mount -o remount,rw /dev/abc / (7) Now you should be able to change the root password by issuing the following command: passwd (8) After the password has been reset, type ‘reboot’ and reboot the server. The job is done Note: For LILO: (1) As the server reboots, you might have to hold in the “shift” key to see the lilo: prompt (depending on the setup) (2) At the lilo boot screen, as soon as ‘boot:’ appears enter: boot: Linux init=/bin/bash This causes the system to boot the kernel and run /bin/bash instead of its standard init. Follow the same procedure of remounting slash as with GRUB. Tags: debian, linux, system administrationRelated postsNo Comments Filed under: Uncategorized by — aaron @ 2:39 pm |
Tag Cloud
system administration
whm
.au
ruby-on-rails
dns
raid
gentoo
servers
hostname
spam
exim
microsoft
cisco
firewall
virtual dedicated servers
blog
centos5
fedora core
wordpress
xen
ubuntu
centos
server-administration
windows
windows 2008 server
debian
announcements
apache
horde
mail
domains
acpi
hypervm
vds
hardware
security
linux
subversion
mssql
cpanel
yum
lxadmin
quotas
networking
ssh
|
|
Quick Links: Debian Dedicated Servers, Direct Deposit Hosting, Unmetered Dedicated Servers, Virtual Dedicated Servers, Windows Server Management, High Traffic Web Hosting - Load Balanced Clusters, Windows 2008 Server Virtual Dedicated Servers
© Copyright 2003-2008
Crucial Paradigm
ABN 97 125 618 662