Recently in Linux/Unix Category
Enter configuration commands, one per line. End with CNTL/Z.
taiter-sw(config)# interface gi0/5
taiter-sw(config-if)# switchport
taiter-sw(config-if)# switchport trunk encapsulation dot1q
taiter-sw(config-if)# switchport trunk native vlan 10
taiter-sw(config-if)# switchport mode trunk
taiter-sw(config-if)# end
I am using Fedora 14 for this but I assume it will work for Ubuntu and CentOS as well.
You must have elevated privileges for this to work so either become root or use sudo.
Power off the virtual machine and export the machine's XML configuration file:
Next, edit the XML file and change the name between the
<name></name> tags (should be right near the top). As an added step you could also rename the disk file to reflect the change of the name and change the name of it in the <devices> section under <source file='/path/to/name_of_vm.img'>.Save the XML file and undefine the old VM name with:
Now just import the edited XML file to define the VM:
And that should be it! You can now start up your vm either in the Virtual Machine Manager or with virsh using:
Hope this was helpful!
I decided to pick up a new video card with HDMI so I wouldn't have to switch my speaker input to direct each time I wanted to use my PC. I grabbed the EVGA GeForce 210 from Tiger Direct and after some power setting changes in the BIOS, the computer booted and automatically started using the newly plugged in HDMI cable!
Now all I had to do was get the sound working.
Since I have been testing with Postfix lately I have found that it is much easier to configure than sendmail so I installed postfix, removed sendmail and made sure that postfix was my default mailer. If you don't know how to do this, do some google searching for switching to postfix in your distro.
As Rogers will surely freak out if I started running a local SMTP/IMAP server due to their Terms and Conditions, I decided to use an existing email service that I have through godaddy.com and figure out how to get postfix to authenticate to the SMTP server that I use there. This means it will also work if your ISP gives you an email address that uses SMTP to send but has a username and password.
Before starting this you need the following information from your SMTP server or ISP:
- User name
- SMTP Server address
- SMTP Server port (if it is something other than the default port, 25)
You will also need:
- Root access
- Postfix installed and set as the default mailer
The problem I ran into was that since our VPN server and Openfire server both have external access and are in the same address space, the VPN server would try to send the Openfire traffic out the external gateway but couldn't reach the server because of some ACLs that were set in place.
So what I did was take the traffic from the VPN tunnel that is going to the Openfire ports and route it through our internal network.
It is also very important that your logical volumes you wish to resize and migrate aren't filled with more data than the destination drive will hold!
For example my root LV (called lv_root) had 9GB in use so it was alright for me to resize and transfer to the new system.
Also, you will probably need to remove your swap LV (if your swap is configured as an LV), there will be an example of how to do that.
Required Items:
- USB Drive or Blank CDROM
- liveusb-creator (if using USB method)
- (Optional)Fedora LiveCD Iso
- You can also get liveusb-creator to download the image over the internet
- USB SATA II connector or secondary SATA port on your motherboard
Have all the above items? Lets get started.
Today I realized that trying there is a much easier way to create custom updated paravirtualized domUs that can be rolled out in a matter of minutes than copying a 20GB image file from an NFS mount.
With kickstart it is really a no brainer; from the config file you can set absolutely everything for your domU... eg. IP, hostname and many more options (way too many to list here, but if you want you can check out the kickstart manual, there is a link provided at the end of the howto).
I will be providing a basic kickstart install script that installs a few extra packages and then updates the entire installation.
I am using sshmenu and gnome-applet-sshmenu version 3.15-6.fc11 on Gnome in Fedora 11. The following guide will show you how to very easily add an entry to the sshmenu that will allow you to use SSH to connect to your already running VNC server.
This guide will not show you how to setup a VNC server, but there are a lot of those how-tos available around the internet.
I started searching again because I just installed Fedora 11 (which came out today) on my EEE-PC and thought I might want to have a kickass screensaver running on it.
EDIT: Updated script for new changes made and compatibility with Fedora 12. Change made November 18th 2009. The script may error out on downloading a package, but disregard unless there is a problem compiling.
EDIT 2: The script is working with Fedora 13 as well, a big thanks to Michael Ayers (ayersm@ayerhead.net) for letting me know of some differences for Fedora 13! :)
EDIT 3: It is confirmed as working for Fedora 14, another thanks to Canin who noted a difference involving SELinux. To fix this you can run
execstack -c /usr/lib/libxvidcore.so.4.2 and it should work properlyAfter searching very briefly I came across a script on an electricsheep forum post made by the team that pushed me in the right direction.
This is a pretty simple procedure, well not so simple when I first started as there were tons of errors about disk labels being wrong etc.
The system I am using is the most recently updated CentOS 5.2 X86_64 running the CentOS xen package which is v3.1.2 (even though it still says 3.0.4 in the RPM name.. gg CentOS)